home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_xemacs.idb / usr / freeware / lib / xemacs-20.4 / lisp / modes / view.elc.z / view.elc
Emacs Compiled Lisp  |  1998-05-21  |  13.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
100% file Emacs/XEmacs v20 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 14 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6a 75 73 74 69 6e 62 |piled by| justinb|
|00000020| 40 65 62 6f 6e 79 2e 63 | 72 61 79 2e 63 6f 6d 20 |@ebony.c|ray.com |
|00000030| 6f 6e 20 4d 6f 6e 20 4d | 61 72 20 20 39 20 31 32 |on Mon M|ar 9 12|
|00000040| 3a 35 31 3a 35 37 20 31 | 39 39 38 0a 3b 3b 3b 20 |:51:57 1|998.;;; |
|00000050| 66 72 6f 6d 20 66 69 6c | 65 20 2f 68 6f 6d 65 2f |from fil|e /home/|
|00000060| 61 73 70 65 6e 30 37 2f | 6a 75 73 74 69 6e 62 2f |aspen07/|justinb/|
|00000070| 72 6f 6f 74 73 2f 66 72 | 65 65 77 61 72 65 2f 78 |roots/fr|eeware/x|
|00000080| 65 6d 61 63 73 2f 32 30 | 2e 33 2f 78 65 6d 61 63 |emacs/20|.3/xemac|
|00000090| 73 2d 32 30 2e 33 2f 6c | 69 73 70 2f 6d 6f 64 65 |s-20.3/l|isp/mode|
|000000a0| 73 2f 76 69 65 77 2e 65 | 6c 0a 3b 3b 3b 20 65 6d |s/view.e|l.;;; em|
|000000b0| 61 63 73 20 76 65 72 73 | 69 6f 6e 20 32 30 2e 34 |acs vers|ion 20.4|
|000000c0| 20 22 45 6d 65 72 61 6c | 64 22 20 58 45 6d 61 63 | "Emeral|d" XEmac|
|000000d0| 73 20 20 4c 75 63 69 64 | 2e 0a 3b 3b 3b 20 62 79 |s Lucid|..;;; by|
|000000e0| 74 65 63 6f 6d 70 20 76 | 65 72 73 69 6f 6e 20 32 |tecomp v|ersion 2|
|000000f0| 2e 32 35 20 58 45 6d 61 | 63 73 3b 20 32 32 2d 4d |.25 XEma|cs; 22-M|
|00000100| 61 72 2d 39 36 2e 0a 3b | 3b 3b 20 6f 70 74 69 6d |ar-96..;|;; optim|
|00000110| 69 7a 61 74 69 6f 6e 20 | 69 73 20 6f 6e 2e 0a 3b |ization |is on..;|
|00000120| 3b 3b 20 74 68 69 73 20 | 66 69 6c 65 20 75 73 65 |;; this |file use|
|00000130| 73 20 6f 70 63 6f 64 65 | 73 20 77 68 69 63 68 20 |s opcode|s which |
|00000140| 64 6f 20 6e 6f 74 20 65 | 78 69 73 74 20 69 6e 20 |do not e|xist in |
|00000150| 45 6d 61 63 73 20 31 39 | 2e 0a 0a 28 69 66 20 28 |Emacs 19|...(if (|
|00000160| 61 6e 64 20 28 62 6f 75 | 6e 64 70 20 27 65 6d 61 |and (bou|ndp 'ema|
|00000170| 63 73 2d 76 65 72 73 69 | 6f 6e 29 0a 09 20 28 6f |cs-versi|on).. (o|
|00000180| 72 20 28 61 6e 64 20 28 | 62 6f 75 6e 64 70 20 27 |r (and (|boundp '|
|00000190| 65 70 6f 63 68 3a 3a 76 | 65 72 73 69 6f 6e 29 20 |epoch::v|ersion) |
|000001a0| 65 70 6f 63 68 3a 3a 76 | 65 72 73 69 6f 6e 29 0a |epoch::v|ersion).|
|000001b0| 09 20 20 20 20 20 28 73 | 74 72 69 6e 67 2d 6c 65 |. (s|tring-le|
|000001c0| 73 73 70 20 65 6d 61 63 | 73 2d 76 65 72 73 69 6f |ssp emac|s-versio|
|000001d0| 6e 20 22 32 30 22 29 29 | 29 0a 20 20 20 20 28 65 |n "20"))|). (e|
|000001e0| 72 72 6f 72 20 22 60 76 | 69 65 77 2e 65 6c 27 20 |rror "`v|iew.el' |
|000001f0| 77 61 73 20 63 6f 6d 70 | 69 6c 65 64 20 66 6f 72 |was comp|iled for|
|00000200| 20 45 6d 61 63 73 20 32 | 30 22 29 29 0a 0a 28 6f | Emacs 2|0"))..(o|
|00000210| 72 20 28 62 6f 75 6e 64 | 70 20 27 63 75 72 72 65 |r (bound|p 'curre|
|00000220| 6e 74 2d 6c 6f 61 64 2d | 6c 69 73 74 29 20 28 73 |nt-load-|list) (s|
|00000230| 65 74 71 20 63 75 72 72 | 65 6e 74 2d 6c 6f 61 64 |etq curr|ent-load|
|00000240| 2d 6c 69 73 74 20 6e 69 | 6c 29 29 0a 0a 0a 28 62 |-list ni|l))...(b|
|00000250| 79 74 65 2d 63 6f 64 65 | 20 22 c0 c1 21 ab 84 c2 |yte-code| "..!...|
|00000260| c3 21 88 c0 87 22 20 5b | 66 65 61 74 75 72 65 70 |.!..." [|featurep|
|00000270| 20 76 69 65 77 2d 6c 65 | 73 73 20 65 72 72 6f 72 | view-le|ss error|
|00000280| 20 22 43 61 6e 27 74 20 | 6c 6f 61 64 20 76 69 65 | "Can't |load vie|
|00000290| 77 2e 65 6c 20 61 6e 64 | 20 76 69 65 77 2d 6c 65 |w.el and| view-le|
|000002a0| 73 73 2e 65 6c 20 69 6e | 20 73 61 6d 65 20 73 65 |ss.el in| same se|
|000002b0| 73 73 69 6f 6e 2e 22 5d | 20 32 29 0a 23 40 37 37 |ssion."]| 2).#@77|
|000002c0| 20 2a 54 68 65 20 65 78 | 74 65 6e 74 20 66 61 63 | *The ex|tent fac|
|000002d0| 65 20 75 73 65 64 20 66 | 6f 72 20 68 69 67 68 6c |e used f|or highl|
|000002e0| 69 67 68 74 69 6e 67 20 | 74 68 65 20 6d 61 74 63 |ighting |the matc|
|000002f0| 68 20 66 6f 75 6e 64 20 | 62 79 20 56 69 65 77 20 |h found |by View |
|00000300| 6d 6f 64 65 20 73 65 61 | 72 63 68 2e 1f 0a 28 64 |mode sea|rch...(d|
|00000310| 65 66 76 61 72 20 76 69 | 65 77 2d 68 69 67 68 6c |efvar vi|ew-highl|
|00000320| 69 67 68 74 2d 66 61 63 | 65 20 27 68 69 67 68 6c |ight-fac|e 'highl|
|00000330| 69 67 68 74 20 28 23 24 | 20 2e 20 2d 37 30 35 29 |ight (#$| . -705)|
|00000340| 29 0a 23 40 33 34 20 4e | 6f 6e 2d 6e 69 6c 20 69 |).#@34 N|on-nil i|
|00000350| 66 20 56 69 65 77 20 6d | 6f 64 65 20 69 73 20 65 |f View m|ode is e|
|00000360| 6e 61 62 6c 65 64 2e 1f | 0a 28 64 65 66 76 61 72 |nabled..|.(defvar|
|00000370| 20 76 69 65 77 2d 6d 6f | 64 65 20 6e 69 6c 20 28 | view-mo|de nil (|
|00000380| 23 24 20 2e 20 38 33 39 | 29 29 0a 28 6d 61 6b 65 |#$ . 839|)).(make|
|00000390| 2d 76 61 72 69 61 62 6c | 65 2d 62 75 66 66 65 72 |-variabl|e-buffer|
|000003a0| 2d 6c 6f 63 61 6c 20 27 | 76 69 65 77 2d 6d 6f 64 |-local '|view-mod|
|000003b0| 65 29 0a 23 40 32 30 30 | 20 4e 6f 6e 2d 6e 69 6c |e).#@200| Non-nil|
|000003c0| 20 6d 65 61 6e 73 20 73 | 63 72 6f 6c 6c 69 6e 67 | means s|crolling|
|000003d0| 20 70 61 73 74 20 74 68 | 65 20 65 6e 64 20 6f 66 | past th|e end of|
|000003e0| 20 62 75 66 66 65 72 20 | 65 78 69 74 73 20 56 69 | buffer |exits Vi|
|000003f0| 65 77 20 6d 6f 64 65 2e | 0a 53 6f 6d 65 20 63 6f |ew mode.|.Some co|
|00000400| 6d 6d 61 6e 64 73 2c 20 | 73 75 63 68 20 61 73 20 |mmands, |such as |
|00000410| 5c 5b 76 69 65 77 2d 66 | 69 6c 65 5d 2c 20 73 65 |\[view-f|ile], se|
|00000420| 74 20 74 68 69 73 20 74 | 6f 20 74 20 6c 6f 63 61 |t this t|o t loca|
|00000430| 6c 6c 79 3b 0a 2b 74 68 | 65 20 6f 6e 6c 79 20 77 |lly;.+th|e only w|
|00000440| 61 79 20 74 6f 20 6f 76 | 65 72 72 69 64 65 20 74 |ay to ov|erride t|
|00000450| 68 61 74 20 69 73 20 74 | 6f 20 73 65 74 20 69 74 |hat is t|o set it|
|00000460| 20 74 6f 20 6e 69 6c 20 | 75 73 69 6e 67 20 60 76 | to nil |using `v|
|00000470| 69 65 77 2d 6d 6f 64 65 | 2d 68 6f 6f 6b 27 2e 1f |iew-mode|-hook'..|
|00000480| 0a 28 64 65 66 76 61 72 | 20 76 69 65 77 2d 6d 6f |.(defvar| view-mo|
|00000490| 64 65 2d 61 75 74 6f 2d | 65 78 69 74 20 6e 69 6c |de-auto-|exit nil|
|000004a0| 20 28 23 24 20 2e 20 39 | 35 33 29 29 0a 28 62 79 | (#$ . 9|53)).(by|
|000004b0| 74 65 2d 63 6f 64 65 20 | 22 c0 c1 21 88 c2 c3 21 |te-code |"..!...!|
|000004c0| ac 82 c4 13 c3 0d 42 15 | c0 c3 21 88 c6 0d 42 15 |......B.|..!...B.|
|000004d0| c0 c6 21 88 c2 c7 21 ac | 83 c4 16 07 c7 0d 42 15 |..!...!.|......B.|
|000004e0| c0 c7 21 88 c2 c8 21 ac | 83 c4 16 08 c8 0d 42 15 |..!...!.|......B.|
|000004f0| c0 c8 21 88 c2 c9 21 ac | 83 c4 16 09 c9 0d 42 15 |..!...!.|......B.|
|00000500| c0 c9 21 88 c2 ca 21 ac | 83 c4 16 5c 6e ca 0d 42 |..!...!.|...\n..B|
|00000510| 15 c0 ca 21 88 c2 cb 21 | ac 83 c4 16 0b cb 0d 42 |...!...!|.......B|
|00000520| 15 c0 cb 21 87 22 20 5b | 6d 61 6b 65 2d 76 61 72 |...!." [|make-var|
|00000530| 69 61 62 6c 65 2d 62 75 | 66 66 65 72 2d 6c 6f 63 |iable-bu|ffer-loc|
|00000540| 61 6c 20 76 69 65 77 2d | 6d 6f 64 65 2d 61 75 74 |al view-|mode-aut|
|00000550| 6f 2d 65 78 69 74 20 62 | 6f 75 6e 64 70 20 76 69 |o-exit b|oundp vi|
|00000560| 65 77 2d 6f 6c 64 2d 62 | 75 66 66 65 72 2d 72 65 |ew-old-b|uffer-re|
|00000570| 61 64 2d 6f 6e 6c 79 20 | 6e 69 6c 20 63 75 72 72 |ad-only |nil curr|
|00000580| 65 6e 74 2d 6c 6f 61 64 | 2d 6c 69 73 74 20 76 69 |ent-load|-list vi|
|00000590| 65 77 2d 6f 6c 64 2d 48 | 65 6c 70 65 72 2d 72 65 |ew-old-H|elper-re|
|000005a0| 74 75 72 6e 2d 62 6c 75 | 72 62 20 76 69 65 77 2d |turn-blu|rb view-|
|000005b0| 73 63 72 6f 6c 6c 2d 73 | 69 7a 65 20 76 69 65 77 |scroll-s|ize view|
|000005c0| 2d 6c 61 73 74 2d 72 65 | 67 65 78 70 20 76 69 65 |-last-re|gexp vie|
|000005d0| 77 2d 65 78 69 74 2d 61 | 63 74 69 6f 6e 20 76 69 |w-exit-a|ction vi|
|000005e0| 65 77 2d 72 65 74 75 72 | 6e 2d 68 65 72 65 20 76 |ew-retur|n-here v|
|000005f0| 69 65 77 2d 65 78 69 74 | 2d 70 6f 73 69 74 69 6f |iew-exit|-positio|
|00000600| 6e 5d 20 32 29 0a 23 40 | 31 31 33 20 45 78 74 65 |n] 2).#@|113 Exte|
|00000610| 6e 74 20 75 73 65 64 20 | 74 6f 20 64 69 73 70 6c |nt used |to displ|
|00000620| 61 79 20 77 68 65 72 65 | 20 61 20 73 65 61 72 63 |ay where| a searc|
|00000630| 68 20 6f 70 65 72 61 74 | 69 6f 6e 20 66 6f 75 6e |h operat|ion foun|
|00000640| 64 20 69 74 73 20 6d 61 | 74 63 68 2e 0a 54 68 69 |d its ma|tch..Thi|
|00000650| 73 20 69 73 20 6c 6f 63 | 61 6c 20 69 6e 20 65 61 |s is loc|al in ea|
|00000660| 63 68 20 62 75 66 66 65 | 72 2c 20 6f 6e 63 65 20 |ch buffe|r, once |
|00000670| 69 74 20 69 73 20 75 73 | 65 64 2e 1f 0a 28 64 65 |it is us|ed...(de|
|00000680| 66 76 61 72 20 76 69 65 | 77 2d 65 78 74 65 6e 74 |fvar vie|w-extent|
|00000690| 20 6e 69 6c 20 28 23 24 | 20 2e 20 31 35 34 38 29 | nil (#$| . 1548)|
|000006a0| 29 0a 28 62 79 74 65 2d | 63 6f 64 65 20 22 c0 c1 |).(byte-|code "..|
|000006b0| 21 88 c2 0b b7 ac 84 c4 | 0b 42 13 c5 c6 21 ac 83 |!.......|.B...!..|
|000006c0| c7 16 06 c6 0e 08 42 16 | 08 0e 06 84 db 00 c9 c6 |......B.|........|
|000006d0| 21 16 06 ca 0e 06 cb cc | 23 88 ca 0e 06 cd ce 23 |!.......|#......#|
|000006e0| 88 ca 0e 06 cf d0 23 88 | ca 0e 06 d1 d2 23 88 ca |......#.|.....#..|
|000006f0| 0e 06 d3 d4 23 88 ca 0e | 06 d5 d4 23 88 ca 0e 06 |....#...|...#....|
|00000700| d6 d2 23 88 ca 0e 06 d7 | d8 23 88 ca 0e 06 d9 d8 |..#.....|.#......|
|00000710| 23 88 ca 0e 06 da db 23 | 88 ca 0e 06 dc dd 23 88 |#......#|......#.|
|00000720| ca 0e 06 de df 23 88 ca | 0e 06 e0 e1 23 88 ca 0e |.....#..|....#...|
|00000730| 06 e2 e3 23 88 ca 0e 06 | e4 e3 23 88 ca 0e 06 e5 |...#....|..#.....|
|00000740| e6 23 88 ca 0e 06 e7 e8 | 23 88 ca 0e 06 e9 e8 23 |.#......|#......#|
|00000750| 88 ca 0e 06 ea eb 23 88 | ca 0e 06 ec ed 23 88 ca |......#.|.....#..|
|00000760| 0e 06 ee ef 23 88 ca 0e | 06 f0 f1 23 88 ca 0e 06 |....#...|...#....|
|00000770| f2 ef 23 88 ca 0e 06 f3 | f1 23 88 ca 0e 06 f4 f5 |..#.....|.#......|
|00000780| 23 88 ca 0e 06 f6 f7 23 | 88 c2 0e 38 b7 ac 89 c2 |#......#|...8....|
|00000790| 0e 06 42 0e 38 42 16 38 | c7 87 22 20 5b 6d 61 6b |..B.8B.8|.." [mak|
|000007a0| 65 2d 76 61 72 69 61 62 | 6c 65 2d 62 75 66 66 65 |e-variab|le-buffe|
|000007b0| 72 2d 6c 6f 63 61 6c 20 | 76 69 65 77 2d 65 78 74 |r-local |view-ext|
|000007c0| 65 6e 74 20 76 69 65 77 | 2d 6d 6f 64 65 20 6d 69 |ent view|-mode mi|
|000007d0| 6e 6f 72 2d 6d 6f 64 65 | 2d 61 6c 69 73 74 20 28 |nor-mode|-alist (|
|000007e0| 76 69 65 77 2d 6d 6f 64 | 65 20 22 20 56 69 65 77 |view-mod|e " View|
|000007f0| 22 29 20 62 6f 75 6e 64 | 70 20 76 69 65 77 2d 6d |") bound|p view-m|
|00000800| 6f 64 65 2d 6d 61 70 20 | 6e 69 6c 20 63 75 72 72 |ode-map |nil curr|
|00000810| 65 6e 74 2d 6c 6f 61 64 | 2d 6c 69 73 74 20 6d 61 |ent-load|-list ma|
|00000820| 6b 65 2d 6b 65 79 6d 61 | 70 20 64 65 66 69 6e 65 |ke-keyma|p define|
|00000830| 2d 6b 65 79 20 22 71 22 | 20 76 69 65 77 2d 65 78 |-key "q"| view-ex|
|00000840| 69 74 20 22 3c 22 20 62 | 65 67 69 6e 6e 69 6e 67 |it "<" b|eginning|
|00000850| 2d 6f 66 2d 62 75 66 66 | 65 72 20 22 3e 22 20 65 |-of-buff|er ">" e|
|00000860| 6e 64 2d 6f 66 2d 62 75 | 66 66 65 72 20 22 1b 76 |nd-of-bu|ffer ".v|
|00000870| 22 20 56 69 65 77 2d 73 | 63 72 6f 6c 6c 2d 6c 69 |" View-s|croll-li|
|00000880| 6e 65 73 2d 62 61 63 6b | 77 61 72 64 20 22 16 22 |nes-back|ward "."|
|00000890| 20 56 69 65 77 2d 73 63 | 72 6f 6c 6c 2d 6c 69 6e | View-sc|roll-lin|
|000008a0| 65 73 2d 66 6f 72 77 61 | 72 64 20 22 20 22 20 22 |es-forwa|rd " " "|
|000008b0| 7f 22 20 22 5c 6e 22 20 | 56 69 65 77 2d 73 63 72 |." "\n" |View-scr|
|000008c0| 6f 6c 6c 2d 6f 6e 65 2d | 6d 6f 72 65 2d 6c 69 6e |oll-one-|more-lin|
|000008d0| 65 20 22 0d 22 20 22 7a | 22 20 56 69 65 77 2d 73 |e "." "z|" View-s|
|000008e0| 63 72 6f 6c 6c 2d 6c 69 | 6e 65 73 2d 66 6f 72 77 |croll-li|nes-forw|
|000008f0| 61 72 64 2d 73 65 74 2d | 73 63 72 6f 6c 6c 2d 73 |ard-set-|scroll-s|
|00000900| 69 7a 65 20 22 67 22 20 | 56 69 65 77 2d 67 6f 74 |ize "g" |View-got|
|00000910| 6f 2d 6c 69 6e 65 20 22 | 3d 22 20 77 68 61 74 2d |o-line "|=" what-|
|00000920| 6c 69 6e 65 20 22 2e 22 | 20 73 65 74 2d 6d 61 72 |line "."| set-mar|
|00000930| 6b 2d 63 6f 6d 6d 61 6e | 64 20 22 27 22 20 56 69 |k-comman|d "'" Vi|
|00000940| 65 77 2d 62 61 63 6b 2d | 74 6f 2d 6d 61 72 6b 20 |ew-back-|to-mark |
|00000950| 22 40 22 20 22 78 22 20 | 65 78 63 68 61 6e 67 65 |"@" "x" |exchange|
|00000960| 2d 70 6f 69 6e 74 2d 61 | 6e 64 2d 6d 61 72 6b 20 |-point-a|nd-mark |
|00000970| 22 68 22 20 64 65 73 63 | 72 69 62 65 2d 6d 6f 64 |"h" desc|ribe-mod|
|00000980| 65 20 22 3f 22 20 22 73 | 22 20 69 73 65 61 72 63 |e "?" "s|" isearc|
|00000990| 68 2d 66 6f 72 77 61 72 | 64 20 22 72 22 20 69 73 |h-forwar|d "r" is|
|000009a0| 65 61 72 63 68 2d 62 61 | 63 6b 77 61 72 64 20 22 |earch-ba|ckward "|
|000009b0| 2f 22 20 56 69 65 77 2d | 73 65 61 72 63 68 2d 72 |/" View-|search-r|
|000009c0| 65 67 65 78 70 2d 66 6f | 72 77 61 72 64 20 22 5c |egexp-fo|rward "\|
|000009d0| 5c 22 20 56 69 65 77 2d | 73 65 61 72 63 68 2d 72 |\" View-|search-r|
|000009e0| 65 67 65 78 70 2d 62 61 | 63 6b 77 61 72 64 20 22 |egexp-ba|ckward "|
|000009f0| 1b 13 22 20 22 1b 12 22 | 20 22 6e 22 20 56 69 65 |.." ".."| "n" Vie|
|00000a00| 77 2d 73 65 61 72 63 68 | 2d 6c 61 73 74 2d 72 65 |w-search|-last-re|
|00000a10| 67 65 78 70 2d 66 6f 72 | 77 61 72 64 20 22 70 22 |gexp-for|ward "p"|
|00000a20| 20 56 69 65 77 2d 73 65 | 61 72 63 68 2d 6c 61 73 | View-se|arch-las|
|00000a30| 74 2d 72 65 67 65 78 70 | 2d 62 61 63 6b 77 61 72 |t-regexp|-backwar|
|00000a40| 64 20 6d 69 6e 6f 72 2d | 6d 6f 64 65 2d 6d 61 70 |d minor-|mode-map|
|00000a50| 2d 61 6c 69 73 74 5d 20 | 34 29 0a 23 40 33 38 31 |-alist] |4).#@381|
|00000a60| 20 56 69 65 77 20 46 49 | 4c 45 20 69 6e 20 56 69 | View FI|LE in Vi|
|00000a70| 65 77 20 6d 6f 64 65 2c | 20 72 65 74 75 72 6e 69 |ew mode,| returni|
|00000a80| 6e 67 20 74 6f 20 70 72 | 65 76 69 6f 75 73 20 62 |ng to pr|evious b|
|00000a90| 75 66 66 65 72 20 77 68 | 65 6e 20 64 6f 6e 65 2e |uffer wh|en done.|
|00000aa0| 0a 54 68 65 20 75 73 75 | 61 6c 20 45 6d 61 63 73 |.The usu|al Emacs|
|00000ab0| 20 63 6f 6d 6d 61 6e 64 | 73 20 61 72 65 20 6e 6f | command|s are no|
|00000ac0| 74 20 61 76 61 69 6c 61 | 62 6c 65 3b 20 69 6e 73 |t availa|ble; ins|
|00000ad0| 74 65 61 64 2c 0a 61 20 | 73 70 65 63 69 61 6c 20 |tead,.a |special |
|00000ae0| 73 65 74 20 6f 66 20 63 | 6f 6d 6d 61 6e 64 73 20 |set of c|ommands |
|00000af0| 28 6d 6f 73 74 6c 79 20 | 6c 65 74 74 65 72 73 20 |(mostly |letters |
|00000b00| 61 6e 64 20 70 75 6e 63 | 74 75 61 74 69 6f 6e 29 |and punc|tuation)|
|00000b10| 0a 61 72 65 20 64 65 66 | 69 6e 65 64 20 66 6f 72 |.are def|ined for|
|00000b20| 20 6d 6f 76 69 6e 67 20 | 61 72 6f 75 6e 64 20 69 | moving |around i|
|00000b30| 6e 20 74 68 65 20 62 75 | 66 66 65 72 2e 0a 53 70 |n the bu|ffer..Sp|
|00000b40| 61 63 65 20 73 63 72 6f | 6c 6c 73 20 66 6f 72 77 |ace scro|lls forw|
|00000b50| 61 72 64 2c 20 44 65 6c | 65 74 65 20 73 63 72 6f |ard, Del|ete scro|
|00000b60| 6c 6c 73 20 62 61 63 6b | 77 61 72 64 2e 0a 46 6f |lls back|ward..Fo|
|00000b70| 72 20 6c 69 73 74 20 6f | 66 20 61 6c 6c 20 56 69 |r list o|f all Vi|
|00000b80| 65 77 20 63 6f 6d 6d 61 | 6e 64 73 2c 20 74 79 70 |ew comma|nds, typ|
|00000b90| 65 20 3f 20 6f 72 20 68 | 20 77 68 69 6c 65 20 76 |e ? or h| while v|
|00000ba0| 69 65 77 69 6e 67 2e 0a | 0a 54 68 69 73 20 63 6f |iewing..|.This co|
|00000bb0| 6d 6d 61 6e 64 20 72 75 | 6e 73 20 74 68 65 20 6e |mmand ru|ns the n|
|00000bc0| 6f 72 6d 61 6c 20 68 6f | 6f 6b 20 60 76 69 65 77 |ormal ho|ok `view|
|00000bd0| 2d 6d 6f 64 65 2d 68 6f | 6f 6b 27 2e 1f 0a 28 64 |-mode-ho|ok'...(d|
|00000be0| 65 66 61 6c 69 61 73 20 | 27 76 69 65 77 2d 66 69 |efalias |'view-fi|
|00000bf0| 6c 65 20 23 5b 28 66 69 | 6c 65 2d 6e 61 6d 65 29 |le #[(fi|le-name)|
|00000c00| 20 22 70 c0 09 21 c2 09 | 21 1b 1c 1d c6 0b 0c 5c | "p..!..|!......\|
|00000c10| 22 88 c7 0d 0c 3f ad 87 | c8 0b 21 3f ad 81 c9 5c |"....?..|..!?...\|
|00000c20| 22 2b 87 22 20 5b 67 65 | 74 2d 66 69 6c 65 2d 62 |"+." [ge|t-file-b|
|00000c30| 75 66 66 65 72 20 66 69 | 6c 65 2d 6e 61 6d 65 20 |uffer fi|le-name |
|00000c40| 66 69 6e 64 2d 66 69 6c | 65 2d 6e 6f 73 65 6c 65 |find-fil|e-nosele|
|00000c50| 63 74 20 62 75 66 2d 74 | 6f 2d 76 69 65 77 20 68 |ct buf-t|o-view h|
|00000c60| 61 64 2d 61 2d 62 75 66 | 20 6f 6c 64 2d 62 75 66 |ad-a-buf| old-buf|
|00000c70| 20 73 77 69 74 63 68 2d | 74 6f 2d 62 75 66 66 65 | switch-|to-buffe|
|00000c80| 72 20 76 69 65 77 2d 6d | 6f 64 65 2d 65 6e 74 65 |r view-m|ode-ente|
|00000c90| 72 20 62 75 66 66 65 72 | 2d 6d 6f 64 69 66 69 65 |r buffer|-modifie|
|00000ca0| 64 2d 70 20 6b 69 6c 6c | 2d 62 75 66 66 65 72 5d |d-p kill|-buffer]|
|00000cb0| 20 34 20 28 23 24 20 2e | 20 32 36 35 37 29 20 22 | 4 (#$ .| 2657) "|
|00000cc0| 66 56 69 65 77 20 66 69 | 6c 65 3a 20 22 5d 29 0a |fView fi|le: "]).|
|00000cd0| 23 40 33 39 34 20 56 69 | 65 77 20 46 49 4c 45 20 |#@394 Vi|ew FILE |
|00000ce0| 69 6e 20 56 69 65 77 20 | 6d 6f 64 65 20 69 6e 20 |in View |mode in |
|00000cf0| 6f 74 68 65 72 20 77 69 | 6e 64 6f 77 2e 0a 52 65 |other wi|ndow..Re|
|00000d00| 74 75 72 6e 20 74 6f 20 | 70 72 65 76 69 6f 75 73 |turn to |previous|
|00000d10| 20 62 75 66 66 65 72 20 | 77 68 65 6e 20 64 6f 6e | buffer |when don|
|00000d20| 65 2e 0a 54 68 65 20 75 | 73 75 61 6c 20 45 6d 61 |e..The u|sual Ema|
|00000d30| 63 73 20 63 6f 6d 6d 61 | 6e 64 73 20 61 72 65 20 |cs comma|nds are |
|00000d40| 6e 6f 74 20 61 76 61 69 | 6c 61 62 6c 65 3b 20 69 |not avai|lable; i|
|00000d50| 6e 73 74 65 61 64 2c 0a | 61 20 73 70 65 63 69 61 |nstead,.|a specia|
|00000d60| 6c 20 73 65 74 20 6f 66 | 20 63 6f 6d 6d 61 6e 64 |l set of| command|
|00000d70| 73 20 28 6d 6f 73 74 6c | 79 20 6c 65 74 74 65 72 |s (mostl|y letter|
|00000d80| 73 20 61 6e 64 20 70 75 | 6e 63 74 75 61 74 69 6f |s and pu|nctuatio|
|00000d90| 6e 29 0a 61 72 65 20 64 | 65 66 69 6e 65 64 20 66 |n).are d|efined f|
|00000da0| 6f 72 20 6d 6f 76 69 6e | 67 20 61 72 6f 75 6e 64 |or movin|g around|
|00000db0| 20 69 6e 20 74 68 65 20 | 62 75 66 66 65 72 2e 0a | in the |buffer..|
|00000dc0| 53 70 61 63 65 20 73 63 | 72 6f 6c 6c 73 20 66 6f |Space sc|rolls fo|
|00000dd0| 72 77 61 72 64 2c 20 44 | 65 6c 65 74 65 20 73 63 |rward, D|elete sc|
|00000de0| 72 6f 6c 6c 73 20 62 61 | 63 6b 77 61 72 64 2e 0a |rolls ba|ckward..|
|00000df0| 46 6f 72 20 6c 69 73 74 | 20 6f 66 20 61 6c 6c 20 |For list| of all |
|00000e00| 56 69 65 77 20 63 6f 6d | 6d 61 6e 64 73 2c 20 74 |View com|mands, t|
|00000e10| 79 70 65 20 3f 20 6f 72 | 20 68 20 77 68 69 6c 65 |ype ? or| h while|
|00000e20| 20 76 69 65 77 69 6e 67 | 2e 0a 0a 54 68 69 73 20 | viewing|...This |
|00000e30| 63 6f 6d 6d 61 6e 64 20 | 72 75 6e 73 20 74 68 65 |command |runs the|
|00000e40| 20 6e 6f 72 6d 61 6c 20 | 68 6f 6f 6b 20 60 76 69 | normal |hook `vi|
|00000e50| 65 77 2d 6d 6f 64 65 2d | 68 6f 6f 6b 27 2e 1f 0a |ew-mode-|hook'...|
|00000e60| 28 64 65 66 61 6c 69 61 | 73 20 27 76 69 65 77 2d |(defalia|s 'view-|
|00000e70| 66 69 6c 65 2d 6f 74 68 | 65 72 2d 77 69 6e 64 6f |file-oth|er-windo|
|00000e80| 77 20 23 5b 28 66 69 6c | 65 2d 6e 61 6d 65 29 20 |w #[(fil|e-name) |
|00000e90| 22 c0 20 c1 5c 6e 21 c3 | 5c 6e 21 1c 1d 1e 06 c7 |". .\n!.|\n!.....|
|00000ea0| 0c 21 88 c8 0e 06 0d 3f | ad 87 c9 0c 21 3f ad 81 |.!.....?|....!?..|
|00000eb0| ca 5c 22 2b 87 22 20 5b | 63 75 72 72 65 6e 74 2d |.\"+." [|current-|
|00000ec0| 77 69 6e 64 6f 77 2d 63 | 6f 6e 66 69 67 75 72 61 |window-c|onfigura|
|00000ed0| 74 69 6f 6e 20 67 65 74 | 2d 66 69 6c 65 2d 62 75 |tion get|-file-bu|
|00000ee0| 66 66 65 72 20 66 69 6c | 65 2d 6e 61 6d 65 20 66 |ffer fil|e-name f|
|00000ef0| 69 6e 64 2d 66 69 6c 65 | 2d 6e 6f 73 65 6c 65 63 |ind-file|-noselec|
|00000f00| 74 20 62 75 66 2d 74 6f | 2d 76 69 65 77 20 68 61 |t buf-to|-view ha|
|00000f10| 64 2d 61 2d 62 75 66 20 | 6f 6c 64 2d 61 72 72 61 |d-a-buf |old-arra|
|00000f20| 6e 67 65 6d 65 6e 74 20 | 73 77 69 74 63 68 2d 74 |ngement |switch-t|
|00000f30| 6f 2d 62 75 66 66 65 72 | 2d 6f 74 68 65 72 2d 77 |o-buffer|-other-w|
|00000f40| 69 6e 64 6f 77 20 76 69 | 65 77 2d 6d 6f 64 65 2d |indow vi|ew-mode-|
|00000f50| 65 6e 74 65 72 20 62 75 | 66 66 65 72 2d 6d 6f 64 |enter bu|ffer-mod|
|00000f60| 69 66 69 65 64 2d 70 20 | 6b 69 6c 6c 2d 62 75 66 |ified-p |kill-buf|
|00000f70| 66 65 72 5d 20 34 20 28 | 23 24 20 2e 20 33 32 38 |fer] 4 (|#$ . 328|
|00000f80| 36 29 20 22 66 56 69 65 | 77 20 66 69 6c 65 3a 20 |6) "fVie|w file: |
|00000f90| 22 5d 29 0a 23 40 33 38 | 33 20 56 69 65 77 20 42 |"]).#@38|3 View B|
|00000fa0| 55 46 46 45 52 20 69 6e | 20 56 69 65 77 20 6d 6f |UFFER in| View mo|
|00000fb0| 64 65 2c 20 72 65 74 75 | 72 6e 69 6e 67 20 74 6f |de, retu|rning to|
|00000fc0| 20 70 72 65 76 69 6f 75 | 73 20 62 75 66 66 65 72 | previou|s buffer|
|00000fd0| 20 77 68 65 6e 20 64 6f | 6e 65 2e 0a 54 68 65 20 | when do|ne..The |
|00000fe0| 75 73 75 61 6c 20 45 6d | 61 63 73 20 63 6f 6d 6d |usual Em|acs comm|
|00000ff0| 61 6e 64 73 20 61 72 65 | 20 6e 6f 74 20 61 76 61 |ands are| not ava|
|00001000| 69 6c 61 62 6c 65 3b 20 | 69 6e 73 74 65 61 64 2c |ilable; |instead,|
|00001010| 0a 61 20 73 70 65 63 69 | 61 6c 20 73 65 74 20 6f |.a speci|al set o|
|00001020| 66 20 63 6f 6d 6d 61 6e | 64 73 20 28 6d 6f 73 74 |f comman|ds (most|
|00001030| 6c 79 20 6c 65 74 74 65 | 72 73 20 61 6e 64 20 70 |ly lette|rs and p|
|00001040| 75 6e 63 74 75 61 74 69 | 6f 6e 29 0a 61 72 65 20 |unctuati|on).are |
|00001050| 64 65 66 69 6e 65 64 20 | 66 6f 72 20 6d 6f 76 69 |defined |for movi|
|00001060| 6e 67 20 61 72 6f 75 6e | 64 20 69 6e 20 74 68 65 |ng aroun|d in the|
|00001070| 20 62 75 66 66 65 72 2e | 0a 53 70 61 63 65 20 73 | buffer.|.Space s|
|00001080| 63 72 6f 6c 6c 73 20 66 | 6f 72 77 61 72 64 2c 20 |crolls f|orward, |
|00001090| 44 65 6c 65 74 65 20 73 | 63 72 6f 6c 6c 73 20 62 |Delete s|crolls b|
|000010a0| 61 63 6b 77 61 72 64 2e | 0a 46 6f 72 20 6c 69 73 |ackward.|.For lis|
|000010b0| 74 20 6f 66 20 61 6c 6c | 20 56 69 65 77 20 63 6f |t of all| View co|
|000010c0| 6d 6d 61 6e 64 73 2c 20 | 74 79 70 65 20 3f 20 6f |mmands, |type ? o|
|000010d0| 72 20 68 20 77 68 69 6c | 65 20 76 69 65 77 69 6e |r h whil|e viewin|
|000010e0| 67 2e 0a 0a 54 68 69 73 | 20 63 6f 6d 6d 61 6e 64 |g...This| command|
|000010f0| 20 72 75 6e 73 20 74 68 | 65 20 6e 6f 72 6d 61 6c | runs th|e normal|
|00001100| 20 68 6f 6f 6b 20 60 76 | 69 65 77 2d 6d 6f 64 65 | hook `v|iew-mode|
|00001110| 2d 68 6f 6f 6b 27 2e 1f | 0a 28 64 65 66 61 6c 69 |-hook'..|.(defali|
|00001120| 61 73 20 27 76 69 65 77 | 2d 62 75 66 66 65 72 20 |as 'view|-buffer |
|00001130| 23 5b 28 62 75 66 66 65 | 72 2d 6e 61 6d 65 29 20 |#[(buffe|r-name) |
|00001140| 22 70 18 c1 5c 6e c3 5c | 22 88 c4 08 c5 5c 22 29 |"p..\n.\|"....\")|
|00001150| 87 22 20 5b 6f 6c 64 2d | 62 75 66 20 73 77 69 74 |." [old-|buf swit|
|00001160| 63 68 2d 74 6f 2d 62 75 | 66 66 65 72 20 62 75 66 |ch-to-bu|ffer buf|
|00001170| 66 65 72 2d 6e 61 6d 65 | 20 74 20 76 69 65 77 2d |fer-name| t view-|
|00001180| 6d 6f 64 65 2d 65 6e 74 | 65 72 20 6e 69 6c 5d 20 |mode-ent|er nil] |
|00001190| 33 20 28 23 24 20 2e 20 | 33 39 39 34 29 20 22 62 |3 (#$ . |3994) "b|
|000011a0| 56 69 65 77 20 62 75 66 | 66 65 72 3a 20 22 5d 29 |View buf|fer: "])|
|000011b0| 0a 23 40 34 34 32 20 56 | 69 65 77 20 42 55 46 46 |.#@442 V|iew BUFF|
|000011c0| 45 52 20 69 6e 20 56 69 | 65 77 20 6d 6f 64 65 20 |ER in Vi|ew mode |
|000011d0| 69 6e 20 61 6e 6f 74 68 | 65 72 20 77 69 6e 64 6f |in anoth|er windo|
|000011e0| 77 2e 0a 52 65 74 75 72 | 6e 20 74 6f 20 70 72 65 |w..Retur|n to pre|
|000011f0| 76 69 6f 75 73 20 62 75 | 66 66 65 72 20 77 68 65 |vious bu|ffer whe|
|00001200| 6e 20 64 6f 6e 65 2c 20 | 75 6e 6c 65 73 73 20 4e |n done, |unless N|
|00001210| 4f 54 2d 52 45 54 55 52 | 4e 20 69 73 20 6e 6f 6e |OT-RETUR|N is non|
|00001220| 2d 6e 69 6c 2e 0a 0a 54 | 68 65 20 75 73 75 61 6c |-nil...T|he usual|
|00001230| 20 45 6d 61 63 73 20 63 | 6f 6d 6d 61 6e 64 73 20 | Emacs c|ommands |
|00001240| 61 72 65 20 6e 6f 74 20 | 61 76 61 69 6c 61 62 6c |are not |availabl|
|00001250| 65 20 69 6e 20 56 69 65 | 77 20 6d 6f 64 65 3b 20 |e in Vie|w mode; |
|00001260| 69 6e 73 74 65 61 64 2c | 0a 61 20 73 70 65 63 69 |instead,|.a speci|
|00001270| 61 6c 20 73 65 74 20 6f | 66 20 63 6f 6d 6d 61 6e |al set o|f comman|
|00001280| 64 73 20 28 6d 6f 73 74 | 6c 79 20 6c 65 74 74 65 |ds (most|ly lette|
|00001290| 72 73 20 61 6e 64 20 70 | 75 6e 63 74 75 61 74 69 |rs and p|unctuati|
|000012a0| 6f 6e 29 0a 61 72 65 20 | 64 65 66 69 6e 65 64 20 |on).are |defined |
|000012b0| 66 6f 72 20 6d 6f 76 69 | 6e 67 20 61 72 6f 75 6e |for movi|ng aroun|
|000012c0| 64 20 69 6e 20 74 68 65 | 20 62 75 66 66 65 72 2e |d in the| buffer.|
|000012d0| 0a 53 70 61 63 65 20 73 | 63 72 6f 6c 6c 73 20 66 |.Space s|crolls f|
|000012e0| 6f 72 77 61 72 64 2c 20 | 44 65 6c 65 74 65 20 73 |orward, |Delete s|
|000012f0| 63 72 6f 6c 6c 73 20 62 | 61 63 6b 77 61 72 64 2e |crolls b|ackward.|
|00001300| 0a 46 6f 72 20 6c 69 73 | 74 20 6f 66 20 61 6c 6c |.For lis|t of all|
|00001310| 20 56 69 65 77 20 63 6f | 6d 6d 61 6e 64 73 2c 20 | View co|mmands, |
|00001320| 74 79 70 65 20 3f 20 6f | 72 20 68 20 77 68 69 6c |type ? o|r h whil|
|00001330| 65 20 76 69 65 77 69 6e | 67 2e 0a 0a 54 68 69 73 |e viewin|g...This|
|00001340| 20 63 6f 6d 6d 61 6e 64 | 20 72 75 6e 73 20 74 68 | command| runs th|
|00001350| 65 20 6e 6f 72 6d 61 6c | 20 68 6f 6f 6b 20 60 76 |e normal| hook `v|
|00001360| 69 65 77 2d 6d 6f 64 65 | 2d 68 6f 6f 6b 27 2e 1f |iew-mode|-hook'..|
|00001370| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 76 69 65 77 |.(defali|as 'view|
|00001380| 2d 62 75 66 66 65 72 2d | 6f 74 68 65 72 2d 77 69 |-buffer-|other-wi|
|00001390| 6e 64 6f 77 20 23 5b 28 | 62 75 66 66 65 72 2d 6e |ndow #[(|buffer-n|
|000013a0| 61 6d 65 20 6e 6f 74 2d | 72 65 74 75 72 6e 29 20 |ame not-|return) |
|000013b0| 22 08 ad 82 c1 20 1a c3 | 0c 21 88 c5 5c 6e 21 29 |".... ..|.!..\n!)|
|000013c0| 87 22 20 5b 6e 6f 74 2d | 72 65 74 75 72 6e 20 63 |." [not-|return c|
|000013d0| 75 72 72 65 6e 74 2d 77 | 69 6e 64 6f 77 2d 63 6f |urrent-w|indow-co|
|000013e0| 6e 66 69 67 75 72 61 74 | 69 6f 6e 20 72 65 74 75 |nfigurat|ion retu|
|000013f0| 72 6e 2d 74 6f 20 73 77 | 69 74 63 68 2d 74 6f 2d |rn-to sw|itch-to-|
|00001400| 62 75 66 66 65 72 2d 6f | 74 68 65 72 2d 77 69 6e |buffer-o|ther-win|
|00001410| 64 6f 77 20 62 75 66 66 | 65 72 2d 6e 61 6d 65 20 |dow buff|er-name |
|00001420| 76 69 65 77 2d 6d 6f 64 | 65 2d 65 6e 74 65 72 5d |view-mod|e-enter]|
|00001430| 20 32 20 28 23 24 20 2e | 20 34 35 33 35 29 20 22 | 2 (#$ .| 4535) "|
|00001440| 62 56 69 65 77 20 62 75 | 66 66 65 72 3a 5c 6e 50 |bView bu|ffer:\nP|
|00001450| 22 5d 29 0a 23 40 31 38 | 34 31 20 54 6f 67 67 6c |"]).#@18|41 Toggl|
|00001460| 65 20 56 69 65 77 20 6d | 6f 64 65 2e 0a 57 69 74 |e View m|ode..Wit|
|00001470| 68 20 61 20 70 72 65 66 | 69 78 20 61 72 67 75 6d |h a pref|ix argum|
|00001480| 65 6e 74 2c 20 74 75 72 | 6e 20 56 69 65 77 20 6d |ent, tur|n View m|
|00001490| 6f 64 65 20 6f 6e 20 69 | 66 20 74 68 65 20 61 72 |ode on i|f the ar|
|000014a0| 67 75 6d 65 6e 74 20 69 | 73 20 3e 3d 20 7a 65 72 |gument i|s >= zer|
|000014b0| 6f 0a 61 6e 64 20 6f 66 | 66 20 69 66 20 69 74 20 |o.and of|f if it |
|000014c0| 69 73 20 6e 6f 74 2e 0a | 0a 49 66 20 79 6f 75 20 |is not..|.If you |
|000014d0| 75 73 65 20 74 68 69 73 | 20 66 75 6e 63 74 69 6f |use this| functio|
|000014e0| 6e 20 74 6f 20 74 75 72 | 6e 20 6f 6e 20 56 69 65 |n to tur|n on Vie|
|000014f0| 77 20 6d 6f 64 65 2c 20 | 74 68 65 6e 20 73 75 62 |w mode, |then sub|
|00001500| 73 65 71 75 65 6e 74 6c | 79 0a 22 65 78 69 74 69 |sequentl|y."exiti|
|00001510| 6e 67 22 20 56 69 65 77 | 20 6d 6f 64 65 20 64 6f |ng" View| mode do|
|00001520| 65 73 20 6e 6f 74 68 69 | 6e 67 20 65 78 63 65 70 |es nothi|ng excep|
|00001530| 74 20 74 75 72 6e 20 56 | 69 65 77 20 6d 6f 64 65 |t turn V|iew mode|
|00001540| 20 6f 66 66 2e 20 20 54 | 68 65 0a 6f 74 68 65 72 | off. T|he.other|
|00001550| 20 77 61 79 20 74 6f 20 | 74 75 72 6e 20 56 69 65 | way to |turn Vie|
|00001560| 77 20 6d 6f 64 65 20 6f | 6e 20 69 73 20 62 79 20 |w mode o|n is by |
|00001570| 63 61 6c 6c 69 6e 67 20 | 60 76 69 65 77 2d 6d 6f |calling |`view-mo|
|00001580| 64 65 2d 65 6e 74 65 72 | 27 3b 0a 74 68 61 74 20 |de-enter|';.that |
|00001590| 69 73 20 77 68 61 74 20 | 4c 69 73 70 20 70 72 6f |is what |Lisp pro|
|000015a0| 67 72 61 6d 73 20 75 73 | 75 61 6c 6c 79 20 75 73 |grams us|ually us|
|000015b0| 65 2e 0a 0a 4c 65 74 74 | 65 72 73 20 64 6f 20 6e |e...Lett|ers do n|
|000015c0| 6f 74 20 69 6e 73 65 72 | 74 20 74 68 65 6d 73 65 |ot inser|t themse|
|000015d0| 6c 76 65 73 2e 20 20 49 | 6e 73 74 65 61 64 20 74 |lves. I|nstead t|
|000015e0| 68 65 73 65 20 63 6f 6d | 6d 61 6e 64 73 20 61 72 |hese com|mands ar|
|000015f0| 65 20 70 72 6f 76 69 64 | 65 64 2e 0a 4d 6f 73 74 |e provid|ed..Most|
|00001600| 20 63 6f 6d 6d 61 6e 64 | 73 20 74 61 6b 65 20 70 | command|s take p|
|00001610| 72 65 66 69 78 20 61 72 | 67 75 6d 65 6e 74 73 2e |refix ar|guments.|
|00001620| 20 20 43 6f 6d 6d 61 6e | 64 73 20 64 65 61 6c 69 | Comman|ds deali|
|00001630| 6e 67 20 77 69 74 68 20 | 6c 69 6e 65 73 0a 64 65 |ng with |lines.de|
|00001640| 66 61 75 6c 74 20 74 6f | 20 22 73 63 72 6f 6c 6c |fault to| "scroll|
|00001650| 20 73 69 7a 65 22 20 6c | 69 6e 65 73 20 28 69 6e | size" l|ines (in|
|00001660| 69 74 69 61 6c 6c 79 20 | 73 69 7a 65 20 6f 66 20 |itially |size of |
|00001670| 77 69 6e 64 6f 77 29 2e | 0a 53 65 61 72 63 68 20 |window).|.Search |
|00001680| 63 6f 6d 6d 61 6e 64 73 | 20 64 65 66 61 75 6c 74 |commands| default|
|00001690| 20 74 6f 20 61 20 72 65 | 70 65 61 74 20 63 6f 75 | to a re|peat cou|
|000016a0| 6e 74 20 6f 66 20 6f 6e | 65 2e 0a 0a 4d 2d 3c 20 |nt of on|e...M-< |
|000016b0| 6f 72 20 3c 09 6d 6f 76 | 65 20 74 6f 20 62 65 67 |or <.mov|e to beg|
|000016c0| 69 6e 6e 69 6e 67 20 6f | 66 20 62 75 66 66 65 72 |inning o|f buffer|
|000016d0| 2e 0a 4d 2d 3e 20 6f 72 | 20 3e 09 6d 6f 76 65 20 |..M-> or| >.move |
|000016e0| 74 6f 20 65 6e 64 20 6f | 66 20 62 75 66 66 65 72 |to end o|f buffer|
|000016f0| 2e 0a 43 2d 76 20 6f 72 | 20 53 70 61 63 65 09 73 |..C-v or| Space.s|
|00001700| 63 72 6f 6c 6c 20 66 6f | 72 77 61 72 64 20 6c 69 |croll fo|rward li|
|00001710| 6e 65 73 2e 0a 4d 2d 76 | 20 6f 72 20 44 45 4c 09 |nes..M-v| or DEL.|
|00001720| 73 63 72 6f 6c 6c 20 62 | 61 63 6b 77 61 72 64 20 |scroll b|ackward |
|00001730| 6c 69 6e 65 73 2e 0a 43 | 52 20 6f 72 20 4c 46 09 |lines..C|R or LF.|
|00001740| 73 63 72 6f 6c 6c 20 66 | 6f 72 77 61 72 64 20 6f |scroll f|orward o|
|00001750| 6e 65 20 6c 69 6e 65 20 | 28 62 61 63 6b 77 61 72 |ne line |(backwar|
|00001760| 64 20 77 69 74 68 20 70 | 72 65 66 69 78 20 61 72 |d with p|refix ar|
|00001770| 67 75 6d 65 6e 74 29 2e | 0a 7a 09 09 6c 69 6b 65 |gument).|.z..like|
|00001780| 20 53 70 61 63 65 20 65 | 78 63 65 70 74 20 73 65 | Space e|xcept se|
|00001790| 74 20 6e 75 6d 62 65 72 | 20 6f 66 20 6c 69 6e 65 |t number| of line|
|000017a0| 73 20 66 6f 72 20 66 75 | 72 74 68 65 72 0a 09 09 |s for fu|rther...|
|000017b0| 20 20 20 73 63 72 6f 6c | 6c 69 6e 67 20 63 6f 6d | scrol|ling com|
|000017c0| 6d 61 6e 64 73 20 74 6f | 20 73 63 72 6f 6c 6c 20 |mands to| scroll |
|000017d0| 62 79 2e 0a 43 2d 75 20 | 61 6e 64 20 44 69 67 69 |by..C-u |and Digi|
|000017e0| 74 73 09 70 72 6f 76 69 | 64 65 20 70 72 65 66 69 |ts.provi|de prefi|
|000017f0| 78 20 61 72 67 75 6d 65 | 6e 74 73 2e 20 20 60 2d |x argume|nts. `-|
|00001800| 27 20 64 65 6e 6f 74 65 | 73 20 6e 65 67 61 74 69 |' denote|s negati|
|00001810| 76 65 20 61 72 67 75 6d | 65 6e 74 2e 0a 3d 09 09 |ve argum|ent..=..|
|00001820| 70 72 69 6e 74 73 20 74 | 68 65 20 63 75 72 72 65 |prints t|he curre|
|00001830| 6e 74 20 6c 69 6e 65 20 | 6e 75 6d 62 65 72 2e 0a |nt line |number..|
|00001840| 67 09 09 67 6f 65 73 20 | 74 6f 20 6c 69 6e 65 20 |g..goes |to line |
|00001850| 67 69 76 65 6e 20 62 79 | 20 70 72 65 66 69 78 20 |given by| prefix |
|00001860| 61 72 67 75 6d 65 6e 74 | 2e 0a 2f 20 6f 72 20 4d |argument|../ or M|
|00001870| 2d 43 2d 73 09 73 65 61 | 72 63 68 65 73 20 66 6f |-C-s.sea|rches fo|
|00001880| 72 77 61 72 64 20 66 6f | 72 20 72 65 67 75 6c 61 |rward fo|r regula|
|00001890| 72 20 65 78 70 72 65 73 | 73 69 6f 6e 0a 5c 20 6f |r expres|sion.\ o|
|000018a0| 72 20 4d 2d 43 2d 72 09 | 73 65 61 72 63 68 65 73 |r M-C-r.|searches|
|000018b0| 20 62 61 63 6b 77 61 72 | 64 20 66 6f 72 20 72 65 | backwar|d for re|
|000018c0| 67 75 6c 61 72 20 65 78 | 70 72 65 73 73 69 6f 6e |gular ex|pression|
|000018d0| 2e 0a 6e 09 09 73 65 61 | 72 63 68 65 73 20 66 6f |..n..sea|rches fo|
|000018e0| 72 77 61 72 64 20 66 6f | 72 20 6c 61 73 74 20 72 |rward fo|r last r|
|000018f0| 65 67 75 6c 61 72 20 65 | 78 70 72 65 73 73 69 6f |egular e|xpressio|
|00001900| 6e 2e 0a 70 09 09 73 65 | 61 72 63 68 65 73 20 62 |n..p..se|arches b|
|00001910| 61 63 6b 77 61 72 64 20 | 66 6f 72 20 6c 61 73 74 |ackward |for last|
|00001920| 20 72 65 67 75 6c 61 72 | 20 65 78 70 72 65 73 73 | regular| express|
|00001930| 69 6f 6e 2e 0a 43 2d 40 | 20 6f 72 20 2e 09 73 65 |ion..C-@| or ..se|
|00001940| 74 20 74 68 65 20 6d 61 | 72 6b 2e 0a 78 09 09 65 |t the ma|rk..x..e|
|00001950| 78 63 68 61 6e 67 65 73 | 20 70 6f 69 6e 74 20 61 |xchanges| point a|
|00001960| 6e 64 20 6d 61 72 6b 2e | 0a 43 2d 73 20 6f 72 20 |nd mark.|.C-s or |
|00001970| 73 09 64 6f 20 66 6f 72 | 77 61 72 64 20 69 6e 63 |s.do for|ward inc|
|00001980| 72 65 6d 65 6e 74 61 6c | 20 73 65 61 72 63 68 2e |remental| search.|
|00001990| 0a 43 2d 72 20 6f 72 20 | 72 09 64 6f 20 72 65 76 |.C-r or |r.do rev|
|000019a0| 65 72 73 65 20 69 6e 63 | 72 65 6d 65 6e 74 61 6c |erse inc|remental|
|000019b0| 20 73 65 61 72 63 68 2e | 0a 40 20 6f 72 20 27 09 | search.|.@ or '.|
|000019c0| 09 72 65 74 75 72 6e 20 | 74 6f 20 6d 61 72 6b 20 |.return |to mark |
|000019d0| 61 6e 64 20 70 6f 70 73 | 20 6d 61 72 6b 20 72 69 |and pops| mark ri|
|000019e0| 6e 67 2e 0a 09 09 20 20 | 4d 61 72 6b 20 72 69 6e |ng.... |Mark rin|
|000019f0| 67 20 69 73 20 70 75 73 | 68 65 64 20 61 74 20 73 |g is pus|hed at s|
|00001a00| 74 61 72 74 20 6f 66 20 | 65 76 65 72 79 0a 09 09 |tart of |every...|
|00001a10| 20 20 73 75 63 63 65 73 | 73 66 75 6c 20 73 65 61 | succes|sful sea|
|00001a20| 72 63 68 20 61 6e 64 20 | 77 68 65 6e 20 6a 75 6d |rch and |when jum|
|00001a30| 70 20 74 6f 20 6c 69 6e | 65 20 74 6f 20 6f 63 63 |p to lin|e to occ|
|00001a40| 75 72 73 2e 0a 09 09 20 | 20 54 68 65 20 6d 61 72 |urs.... | The mar|
|00001a50| 6b 20 69 73 20 73 65 74 | 20 6f 6e 20 6a 75 6d 70 |k is set| on jump|
|00001a60| 20 74 6f 20 62 75 66 66 | 65 72 20 73 74 61 72 74 | to buff|er start|
|00001a70| 20 6f 72 20 65 6e 64 2e | 0a 3f 20 6f 72 20 68 09 | or end.|.? or h.|
|00001a80| 09 70 72 6f 76 69 64 65 | 20 68 65 6c 70 20 6d 65 |.provide| help me|
|00001a90| 73 73 61 67 65 20 28 6c | 69 73 74 20 6f 66 20 63 |ssage (l|ist of c|
|00001aa0| 6f 6d 6d 61 6e 64 73 29 | 2e 0a 5c 5b 68 65 6c 70 |ommands)|..\[help|
|00001ab0| 2d 63 6f 6d 6d 61 6e 64 | 5d 09 09 70 72 6f 76 69 |-command|]..provi|
|00001ac0| 64 65 73 20 68 65 6c 70 | 20 28 6c 69 73 74 20 6f |des help| (list o|
|00001ad0| 66 20 63 6f 6d 6d 61 6e | 64 73 20 6f 72 20 64 65 |f comman|ds or de|
|00001ae0| 73 63 72 69 70 74 69 6f | 6e 20 6f 66 20 61 20 63 |scriptio|n of a c|
|00001af0| 6f 6d 6d 61 6e 64 29 2e | 0a 43 2d 6e 09 09 6d 6f |ommand).|.C-n..mo|
|00001b00| 76 65 73 20 64 6f 77 6e | 20 6c 69 6e 65 73 20 76 |ves down| lines v|
|00001b10| 65 72 74 69 63 61 6c 6c | 79 2e 0a 43 2d 70 09 09 |erticall|y..C-p..|
|00001b20| 6d 6f 76 65 73 20 75 70 | 77 61 72 64 20 6c 69 6e |moves up|ward lin|
|00001b30| 65 73 20 76 65 72 74 69 | 63 61 6c 6c 79 2e 0a 43 |es verti|cally..C|
|00001b40| 2d 6c 09 09 72 65 63 65 | 6e 74 65 72 73 20 74 68 |-l..rece|nters th|
|00001b50| 65 20 73 63 72 65 65 6e | 2e 0a 71 09 09 65 78 69 |e screen|..q..exi|
|00001b60| 74 20 76 69 65 77 2d 6d | 6f 64 65 20 61 6e 64 20 |t view-m|ode and |
|00001b70| 72 65 74 75 72 6e 20 74 | 6f 20 70 72 65 76 69 6f |return t|o previo|
|00001b80| 75 73 20 62 75 66 66 65 | 72 2e 1f 0a 28 64 65 66 |us buffe|r...(def|
|00001b90| 61 6c 69 61 73 20 27 76 | 69 65 77 2d 6d 6f 64 65 |alias 'v|iew-mode|
|00001ba0| 20 23 5b 28 26 6f 70 74 | 69 6f 6e 61 6c 20 61 72 | #[(&opt|ional ar|
|00001bb0| 67 29 20 22 08 ac 84 09 | 3f aa 85 c2 08 21 c3 56 |g) "....|?....!.V|
|00001bc0| 11 c4 20 87 22 20 5b 61 | 72 67 20 76 69 65 77 2d |.. ." [a|rg view-|
|00001bd0| 6d 6f 64 65 20 70 72 65 | 66 69 78 2d 6e 75 6d 65 |mode pre|fix-nume|
|00001be0| 72 69 63 2d 76 61 6c 75 | 65 20 30 20 66 6f 72 63 |ric-valu|e 0 forc|
|00001bf0| 65 2d 6d 6f 64 65 2d 6c | 69 6e 65 2d 75 70 64 61 |e-mode-l|ine-upda|
|00001c00| 74 65 5d 20 32 20 28 23 | 24 20 2e 20 35 32 31 31 |te] 2 (#|$ . 5211|
|00001c10| 29 20 22 50 22 5d 29 0a | 23 40 31 38 37 20 45 6e |) "P"]).|#@187 En|
|00001c20| 74 65 72 20 56 69 65 77 | 20 6d 6f 64 65 2c 20 61 |ter View| mode, a|
|00001c30| 20 4d 69 6e 6f 72 20 6d | 6f 64 65 20 66 6f 72 20 | Minor m|ode for |
|00001c40| 76 69 65 77 69 6e 67 20 | 74 65 78 74 20 62 75 74 |viewing |text but|
|00001c50| 20 6e 6f 74 20 65 64 69 | 74 69 6e 67 20 69 74 2e | not edi|ting it.|
|00001c60| 0a 53 65 65 20 74 68 65 | 20 66 75 6e 63 74 69 6f |.See the| functio|
|00001c70| 6e 20 60 76 69 65 77 2d | 6d 6f 64 65 27 20 66 6f |n `view-|mode' fo|
|00001c80| 72 20 6d 6f 72 65 20 64 | 65 74 61 69 6c 73 2e 0a |r more d|etails..|
|00001c90| 0a 54 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 20 72 |.This fu|nction r|
|00001ca0| 75 6e 73 20 74 68 65 20 | 6e 6f 72 6d 61 6c 20 68 |uns the |normal h|
|00001cb0| 6f 6f 6b 20 60 76 69 65 | 77 2d 6d 6f 64 65 2d 68 |ook `vie|w-mode-h|
|00001cc0| 6f 6f 6b 27 2e 0a 0a 5c | 7b 76 69 65 77 2d 6d 6f |ook'...\|{view-mo|
|00001cd0| 64 65 2d 6d 61 70 7d 1f | 0a 28 64 65 66 61 6c 69 |de-map}.|.(defali|
|00001ce0| 61 73 20 27 76 69 65 77 | 2d 6d 6f 64 65 2d 65 6e |as 'view|-mode-en|
|00001cf0| 74 65 72 20 23 5b 28 26 | 6f 70 74 69 6f 6e 61 6c |ter #[(&|optional|
|00001d00| 20 70 72 65 76 2d 62 75 | 66 66 65 72 20 61 63 74 | prev-bu|ffer act|
|00001d10| 69 6f 6e 29 20 22 08 11 | c2 c3 21 ad 81 0b 14 c5 |ion) "..|..!.....|
|00001d20| 16 06 c5 10 c5 16 07 c8 | c9 ca 20 ab 86 cb ca 20 |........|.. .... |
|00001d30| 21 aa 82 cc 20 5c 22 13 | 0e 0d 16 0e 0e 0f 16 10 |!... \".|........|
|00001d40| d1 20 16 12 d3 79 88 d4 | 16 15 d6 d7 21 88 d8 d9 |. ...y..|....!...|
|00001d50| da 21 21 87 22 20 5b 62 | 75 66 66 65 72 2d 72 65 |.!!." [b|uffer-re|
|00001d60| 61 64 2d 6f 6e 6c 79 20 | 76 69 65 77 2d 6f 6c 64 |ad-only |view-old|
|00001d70| 2d 62 75 66 66 65 72 2d | 72 65 61 64 2d 6f 6e 6c |-buffer-|read-onl|
|00001d80| 79 20 62 6f 75 6e 64 70 | 20 48 65 6c 70 65 72 2d |y boundp| Helper-|
|00001d90| 72 65 74 75 72 6e 2d 62 | 6c 75 72 62 20 76 69 65 |return-b|lurb vie|
|00001da0| 77 2d 6f 6c 64 2d 48 65 | 6c 70 65 72 2d 72 65 74 |w-old-He|lper-ret|
|00001db0| 75 72 6e 2d 62 6c 75 72 | 62 20 74 20 76 69 65 77 |urn-blur|b t view|
|00001dc0| 2d 6d 6f 64 65 2d 61 75 | 74 6f 2d 65 78 69 74 20 |-mode-au|to-exit |
|00001dd0| 76 69 65 77 2d 6d 6f 64 | 65 20 66 6f 72 6d 61 74 |view-mod|e format|
|00001de0| 20 22 63 6f 6e 74 69 6e | 75 65 20 76 69 65 77 69 | "contin|ue viewi|
|00001df0| 6e 67 20 25 73 22 20 62 | 75 66 66 65 72 2d 66 69 |ng %s" b|uffer-fi|
|00001e00| 6c 65 2d 6e 61 6d 65 20 | 66 69 6c 65 2d 6e 61 6d |le-name |file-nam|
|00001e10| 65 2d 6e 6f 6e 64 69 72 | 65 63 74 6f 72 79 20 62 |e-nondir|ectory b|
|00001e20| 75 66 66 65 72 2d 6e 61 | 6d 65 20 61 63 74 69 6f |uffer-na|me actio|
|00001e30| 6e 20 76 69 65 77 2d 65 | 78 69 74 2d 61 63 74 69 |n view-e|xit-acti|
|00001e40| 6f 6e 20 70 72 65 76 2d | 62 75 66 66 65 72 20 76 |on prev-|buffer v|
|00001e50| 69 65 77 2d 72 65 74 75 | 72 6e 2d 68 65 72 65 20 |iew-retu|rn-here |
|00001e60| 70 6f 69 6e 74 2d 6d 61 | 72 6b 65 72 20 76 69 65 |point-ma|rker vie|
|00001e70| 77 2d 65 78 69 74 2d 70 | 6f 73 69 74 69 6f 6e 20 |w-exit-p|osition |
|00001e80| 30 20 6e 69 6c 20 67 6f | 61 6c 2d 63 6f 6c 75 6d |0 nil go|al-colum|
|00001e90| 6e 20 72 75 6e 2d 68 6f | 6f 6b 73 20 76 69 65 77 |n run-ho|oks view|
|00001ea0| 2d 6d 6f 64 65 2d 68 6f | 6f 6b 20 6d 65 73 73 61 |-mode-ho|ok messa|
|00001eb0| 67 65 20 73 75 62 73 74 | 69 74 75 74 65 2d 63 6f |ge subst|itute-co|
|00001ec0| 6d 6d 61 6e 64 2d 6b 65 | 79 73 20 22 54 79 70 65 |mmand-ke|ys "Type|
|00001ed0| 20 5c 5c 5b 68 65 6c 70 | 2d 63 6f 6d 6d 61 6e 64 | \\[help|-command|
|00001ee0| 5d 20 66 6f 72 20 68 65 | 6c 70 2c 20 5c 5c 5b 64 |] for he|lp, \\[d|
|00001ef0| 65 73 63 72 69 62 65 2d | 6d 6f 64 65 5d 20 66 6f |escribe-|mode] fo|
|00001f00| 72 20 63 6f 6d 6d 61 6e | 64 73 2c 20 5c 5c 5b 76 |r comman|ds, \\[v|
|00001f10| 69 65 77 2d 65 78 69 74 | 5d 20 74 6f 20 71 75 69 |iew-exit|] to qui|
|00001f20| 74 2e 22 5d 20 34 20 28 | 23 24 20 2e 20 37 31 39 |t."] 4 (|#$ . 719|
|00001f30| 38 29 5d 29 0a 23 40 31 | 37 32 20 45 78 69 74 20 |8)]).#@1|72 Exit |
|00001f40| 66 72 6f 6d 20 76 69 65 | 77 2d 6d 6f 64 65 2e 0a |from vie|w-mode..|
|00001f50| 49 66 20 79 6f 75 20 76 | 69 65 77 65 64 20 61 6e |If you v|iewed an|
|00001f60| 20 65 78 69 73 74 69 6e | 67 20 62 75 66 66 65 72 | existin|g buffer|
|00001f70| 2c 20 74 68 61 74 20 62 | 75 66 66 65 72 20 72 65 |, that b|uffer re|
|00001f80| 74 75 72 6e 73 20 74 6f | 20 69 74 73 20 70 72 65 |turns to| its pre|
|00001f90| 76 69 6f 75 73 20 6d 6f | 64 65 2e 0a 49 66 20 79 |vious mo|de..If y|
|00001fa0| 6f 75 20 76 69 65 77 65 | 64 20 61 20 66 69 6c 65 |ou viewe|d a file|
|00001fb0| 20 74 68 61 74 20 77 61 | 73 20 6e 6f 74 20 70 72 | that wa|s not pr|
|00001fc0| 65 73 65 6e 74 20 69 6e | 20 45 6d 61 63 73 2c 20 |esent in| Emacs, |
|00001fd0| 69 74 73 20 62 75 66 66 | 65 72 20 69 73 20 6b 69 |its buff|er is ki|
|00001fe0| 6c 6c 65 64 2e 1f 0a 28 | 64 65 66 61 6c 69 61 73 |lled...(|defalias|
|00001ff0| 20 27 76 69 65 77 2d 65 | 78 69 74 20 23 5b 6e 69 | 'view-e|xit #[ni|
|00002000| 6c 20 22 c0 11 5c 6e ab | 84 c3 5c 6e 21 88 c4 20 |l "..\n.|..\n!.. |
|00002010| 88 0d ad b9 0e 06 16 07 | c0 15 0e 08 62 88 0e 08 |........|....b...|
|00002020| c0 89 93 88 70 0e 09 1e | 5c 6e 1e 0b cc 0e 0d 21 |....p...|\n.....!|
|00002030| ab 87 ce 0e 0d 21 88 aa | 8b cf 0e 0d 21 ab 85 d0 |.....!..|....!...|
|00002040| 0e 0d 21 88 0e 5c 6e ad | 85 0e 5c 6e 0e 0b 21 2a |..!..\n.|..\n..!*|
|00002050| 87 22 20 5b 6e 69 6c 20 | 76 69 65 77 2d 6d 6f 64 |." [nil |view-mod|
|00002060| 65 20 76 69 65 77 2d 65 | 78 74 65 6e 74 20 64 65 |e view-e|xtent de|
|00002070| 6c 65 74 65 2d 65 78 74 | 65 6e 74 20 66 6f 72 63 |lete-ext|ent forc|
|00002080| 65 2d 6d 6f 64 65 2d 6c | 69 6e 65 2d 75 70 64 61 |e-mode-l|ine-upda|
|00002090| 74 65 20 76 69 65 77 2d | 6d 6f 64 65 2d 61 75 74 |te view-|mode-aut|
|000020a0| 6f 2d 65 78 69 74 20 76 | 69 65 77 2d 6f 6c 64 2d |o-exit v|iew-old-|
|000020b0| 62 75 66 66 65 72 2d 72 | 65 61 64 2d 6f 6e 6c 79 |buffer-r|ead-only|
|000020c0| 20 62 75 66 66 65 72 2d | 72 65 61 64 2d 6f 6e 6c | buffer-|read-onl|
|000020d0| 79 20 76 69 65 77 2d 65 | 78 69 74 2d 70 6f 73 69 |y view-e|xit-posi|
|000020e0| 74 69 6f 6e 20 76 69 65 | 77 2d 65 78 69 74 2d 61 |tion vie|w-exit-a|
|000020f0| 63 74 69 6f 6e 20 61 63 | 74 69 6f 6e 20 76 69 65 |ction ac|tion vie|
|00002100| 77 65 64 2d 62 75 66 66 | 65 72 20 62 75 66 66 65 |wed-buff|er buffe|
|00002110| 72 70 20 76 69 65 77 2d | 72 65 74 75 72 6e 2d 68 |rp view-|return-h|
|00002120| 65 72 65 20 73 77 69 74 | 63 68 2d 74 6f 2d 62 75 |ere swit|ch-to-bu|
|00002130| 66 66 65 72 20 77 69 6e | 64 6f 77 2d 63 6f 6e 66 |ffer win|dow-conf|
|00002140| 69 67 75 72 61 74 69 6f | 6e 2d 70 20 73 65 74 2d |iguratio|n-p set-|
|00002150| 77 69 6e 64 6f 77 2d 63 | 6f 6e 66 69 67 75 72 61 |window-c|onfigura|
|00002160| 74 69 6f 6e 5d 20 33 20 | 28 23 24 20 2e 20 37 39 |tion] 3 |(#$ . 79|
|00002170| 39 35 29 20 6e 69 6c 5d | 29 0a 28 64 65 66 61 6c |95) nil]|).(defal|
|00002180| 69 61 73 20 27 76 69 65 | 77 2d 77 69 6e 64 6f 77 |ias 'vie|w-window|
|00002190| 2d 73 69 7a 65 20 23 5b | 6e 69 6c 20 22 c0 20 53 |-size #[|nil ". S|
|000021a0| 87 22 20 5b 77 69 6e 64 | 6f 77 2d 68 65 69 67 68 |." [wind|ow-heigh|
|000021b0| 74 5d 20 31 5d 29 0a 28 | 64 65 66 61 6c 69 61 73 |t] 1]).(|defalias|
|000021c0| 20 27 76 69 65 77 2d 73 | 63 72 6f 6c 6c 2d 73 69 | 'view-s|croll-si|
|000021d0| 7a 65 20 23 5b 6e 69 6c | 20 22 c0 20 09 ae 82 c0 |ze #[nil| ". ....|
|000021e0| 20 5e 87 22 20 5b 76 69 | 65 77 2d 77 69 6e 64 6f | ^." [vi|ew-windo|
|000021f0| 77 2d 73 69 7a 65 20 76 | 69 65 77 2d 73 63 72 6f |w-size v|iew-scro|
|00002200| 6c 6c 2d 73 69 7a 65 5d | 20 32 5d 29 0a 23 40 35 |ll-size]| 2]).#@5|
|00002210| 37 20 4e 6f 72 6d 61 6c | 20 68 6f 6f 6b 20 72 75 |7 Normal| hook ru|
|00002220| 6e 20 77 68 65 6e 20 73 | 74 61 72 74 69 6e 67 20 |n when s|tarting |
|00002230| 74 6f 20 76 69 65 77 20 | 61 20 62 75 66 66 65 72 |to view |a buffer|
|00002240| 20 6f 72 20 66 69 6c 65 | 2e 1f 0a 28 64 65 66 76 | or file|...(defv|
|00002250| 61 72 20 76 69 65 77 2d | 6d 6f 64 65 2d 68 6f 6f |ar view-|mode-hoo|
|00002260| 6b 20 6e 69 6c 20 28 23 | 24 20 2e 20 38 37 32 32 |k nil (#|$ . 8722|
|00002270| 29 29 0a 23 40 31 31 36 | 20 4d 6f 76 65 20 74 6f |)).#@116| Move to|
|00002280| 20 6c 69 6e 65 20 4c 49 | 4e 45 20 69 6e 20 56 69 | line LI|NE in Vi|
|00002290| 65 77 20 6d 6f 64 65 2e | 0a 44 69 73 70 6c 61 79 |ew mode.|.Display|
|000022a0| 20 69 73 20 63 65 6e 74 | 65 72 65 64 20 61 74 20 | is cent|ered at |
|000022b0| 4c 49 4e 45 2e 20 20 53 | 65 74 73 20 6d 61 72 6b |LINE. S|ets mark|
|000022c0| 20 61 74 20 73 74 61 72 | 74 69 6e 67 20 70 6f 73 | at star|ting pos|
|000022d0| 69 74 69 6f 6e 20 61 6e | 64 20 70 75 73 68 65 73 |ition an|d pushes|
|000022e0| 0a 6d 61 72 6b 20 72 69 | 6e 67 2e 1f 0a 28 64 65 |.mark ri|ng...(de|
|000022f0| 66 61 6c 69 61 73 20 27 | 56 69 65 77 2d 67 6f 74 |falias '|View-got|
|00002300| 6f 2d 6c 69 6e 65 20 23 | 5b 28 6c 69 6e 65 29 20 |o-line #|[(line) |
|00002310| 22 c0 20 88 c1 5c 6e 21 | 88 c3 c4 20 c5 a5 21 87 |". ..\n!|... ..!.|
|00002320| 22 20 5b 70 75 73 68 2d | 6d 61 72 6b 20 67 6f 74 |" [push-|mark got|
|00002330| 6f 2d 6c 69 6e 65 20 6c | 69 6e 65 20 72 65 63 65 |o-line l|ine rece|
|00002340| 6e 74 65 72 20 76 69 65 | 77 2d 77 69 6e 64 6f 77 |nter vie|w-window|
|00002350| 2d 73 69 7a 65 20 32 5d | 20 33 20 28 23 24 20 2e |-size 2]| 3 (#$ .|
|00002360| 20 38 38 32 35 29 20 22 | 70 22 5d 29 0a 23 40 32 | 8825) "|p"]).#@2|
|00002370| 30 33 20 53 63 72 6f 6c | 6c 20 66 6f 72 77 61 72 |03 Scrol|l forwar|
|00002380| 64 20 69 6e 20 56 69 65 | 77 20 6d 6f 64 65 2c 20 |d in Vie|w mode, |
|00002390| 6f 72 20 65 78 69 74 20 | 69 66 20 65 6e 64 20 6f |or exit |if end o|
|000023a0| 66 20 74 65 78 74 20 69 | 73 20 76 69 73 69 62 6c |f text i|s visibl|
|000023b0| 65 2e 0a 4e 6f 20 61 72 | 67 20 6d 65 61 6e 73 20 |e..No ar|g means |
|000023c0| 77 68 6f 6c 65 20 77 69 | 6e 64 6f 77 20 66 75 6c |whole wi|ndow ful|
|000023d0| 6c 2c 20 6f 72 20 6e 75 | 6d 62 65 72 20 6f 66 20 |l, or nu|mber of |
|000023e0| 6c 69 6e 65 73 20 73 65 | 74 20 62 79 20 5c 5b 56 |lines se|t by \[V|
|000023f0| 69 65 77 2d 73 63 72 6f | 6c 6c 2d 6c 69 6e 65 73 |iew-scro|ll-lines|
|00002400| 2d 66 6f 72 77 61 72 64 | 2d 73 65 74 2d 73 63 72 |-forward|-set-scr|
|00002410| 6f 6c 6c 2d 73 69 7a 65 | 5d 2e 0a 41 72 67 20 69 |oll-size|]..Arg i|
|00002420| 73 20 6e 75 6d 62 65 72 | 20 6f 66 20 6c 69 6e 65 |s number| of line|
|00002430| 73 20 74 6f 20 73 63 72 | 6f 6c 6c 2e 1f 0a 28 64 |s to scr|oll...(d|
|00002440| 65 66 61 6c 69 61 73 20 | 27 56 69 65 77 2d 73 63 |efalias |'View-sc|
|00002450| 72 6f 6c 6c 2d 6c 69 6e | 65 73 2d 66 6f 72 77 61 |roll-lin|es-forwa|
|00002460| 72 64 20 23 5b 28 26 6f | 70 74 69 6f 6e 61 6c 20 |rd #[(&o|ptional |
|00002470| 6c 69 6e 65 73 29 20 22 | 08 ab 85 c1 08 21 aa 82 |lines) "|.....!..|
|00002480| c2 20 10 c3 64 21 ab 8b | 08 c4 56 ab 86 0d ab 83 |. ..d!..|..V.....|
|00002490| c6 20 87 08 c7 20 59 ab | 86 c8 c9 21 88 aa 91 08 |. ... Y.|...!....|
|000024a0| 5b c7 20 59 ab 86 ca c9 | 21 88 aa 84 c8 08 21 88 |[. Y....|!.....!.|
|000024b0| c3 64 21 ab 8a 64 62 88 | cb cc cd ce 21 5c 22 88 |.d!..db.|....!\".|
|000024c0| cf d0 21 88 c4 79 88 c9 | 87 22 20 5b 6c 69 6e 65 |..!..y..|." [line|
|000024d0| 73 20 70 72 65 66 69 78 | 2d 6e 75 6d 65 72 69 63 |s prefix|-numeric|
|000024e0| 2d 76 61 6c 75 65 20 76 | 69 65 77 2d 73 63 72 6f |-value v|iew-scro|
|000024f0| 6c 6c 2d 73 69 7a 65 20 | 70 6f 73 2d 76 69 73 69 |ll-size |pos-visi|
|00002500| 62 6c 65 2d 69 6e 2d 77 | 69 6e 64 6f 77 2d 70 20 |ble-in-w|indow-p |
|00002510| 30 20 76 69 65 77 2d 6d | 6f 64 65 2d 61 75 74 6f |0 view-m|ode-auto|
|00002520| 2d 65 78 69 74 20 76 69 | 65 77 2d 65 78 69 74 20 |-exit vi|ew-exit |
|00002530| 76 69 65 77 2d 77 69 6e | 64 6f 77 2d 73 69 7a 65 |view-win|dow-size|
|00002540| 20 73 63 72 6f 6c 6c 2d | 75 70 20 6e 69 6c 20 73 | scroll-|up nil s|
|00002550| 63 72 6f 6c 6c 2d 64 6f | 77 6e 20 6d 65 73 73 61 |croll-do|wn messa|
|00002560| 67 65 20 22 25 73 22 20 | 73 75 62 73 74 69 74 75 |ge "%s" |substitu|
|00002570| 74 65 2d 63 6f 6d 6d 61 | 6e 64 2d 6b 65 79 73 20 |te-comma|nd-keys |
|00002580| 22 45 6e 64 2e 20 20 54 | 79 70 65 20 5c 5c 5b 76 |"End. T|ype \\[v|
|00002590| 69 65 77 2d 65 78 69 74 | 5d 20 74 6f 20 71 75 69 |iew-exit|] to qui|
|000025a0| 74 20 76 69 65 77 69 6e | 67 2e 22 20 6d 6f 76 65 |t viewin|g." move|
|000025b0| 2d 74 6f 2d 77 69 6e 64 | 6f 77 2d 6c 69 6e 65 20 |-to-wind|ow-line |
|000025c0| 2d 31 5d 20 34 20 28 23 | 24 20 2e 20 39 30 37 35 |-1] 4 (#|$ . 9075|
|000025d0| 29 20 22 50 22 5d 29 0a | 23 40 34 38 37 20 53 63 |) "P"]).|#@487 Sc|
|000025e0| 72 6f 6c 6c 20 66 6f 72 | 77 61 72 64 20 4c 49 4e |roll for|ward LIN|
|000025f0| 45 53 20 6c 69 6e 65 73 | 20 69 6e 20 56 69 65 77 |ES lines| in View|
|00002600| 20 6d 6f 64 65 2c 20 73 | 65 74 74 69 6e 67 20 74 | mode, s|etting t|
|00002610| 68 65 20 22 73 63 72 6f | 6c 6c 20 73 69 7a 65 22 |he "scro|ll size"|
|00002620| 2e 0a 54 68 69 73 20 69 | 73 20 74 68 65 20 6e 75 |..This i|s the nu|
|00002630| 6d 62 65 72 20 6f 66 20 | 6c 69 6e 65 73 20 77 68 |mber of |lines wh|
|00002640| 69 63 68 20 5c 5b 56 69 | 65 77 2d 73 63 72 6f 6c |ich \[Vi|ew-scrol|
|00002650| 6c 2d 6c 69 6e 65 73 2d | 66 6f 72 77 61 72 64 5d |l-lines-|forward]|
|00002660| 20 61 6e 64 20 5c 5b 56 | 69 65 77 2d 73 63 72 6f | and \[V|iew-scro|
|00002670| 6c 6c 2d 6c 69 6e 65 73 | 2d 62 61 63 6b 77 61 72 |ll-lines|-backwar|
|00002680| 64 5d 20 73 63 72 6f 6c | 6c 20 62 79 20 64 65 66 |d] scrol|l by def|
|00002690| 61 75 6c 74 2e 0a 54 68 | 65 20 61 62 73 6f 6c 75 |ault..Th|e absolu|
|000026a0| 74 65 20 76 61 6c 75 65 | 20 6f 66 20 4c 49 4e 45 |te value| of LINE|
|000026b0| 53 20 69 73 20 75 73 65 | 64 2c 20 73 6f 20 74 68 |S is use|d, so th|
|000026c0| 69 73 20 63 6f 6d 6d 61 | 6e 64 20 63 61 6e 20 62 |is comma|nd can b|
|000026d0| 65 20 75 73 65 64 20 74 | 6f 20 73 63 72 6f 6c 6c |e used t|o scroll|
|000026e0| 0a 62 61 63 6b 77 61 72 | 64 73 20 28 62 75 74 20 |.backwar|ds (but |
|000026f0| 22 73 63 72 6f 6c 6c 20 | 73 69 7a 65 22 20 69 73 |"scroll |size" is|
|00002700| 20 61 6c 77 61 79 73 20 | 70 6f 73 69 74 69 76 65 | always |positive|
|00002710| 29 2e 20 20 49 66 20 4c | 49 4e 45 53 20 69 73 20 |). If L|INES is |
|00002720| 67 72 65 61 74 65 72 20 | 74 68 61 6e 0a 77 69 6e |greater |than.win|
|00002730| 64 6f 77 20 68 65 69 67 | 68 74 20 6f 72 20 6f 6d |dow heig|ht or om|
|00002740| 69 74 74 65 64 2c 20 74 | 68 65 6e 20 77 69 6e 64 |itted, t|hen wind|
|00002750| 6f 77 20 68 65 69 67 68 | 74 20 69 73 20 61 73 73 |ow heigh|t is ass|
|00002760| 75 6d 65 64 2e 20 20 49 | 66 20 4c 49 4e 45 53 20 |umed. I|f LINES |
|00002770| 69 73 20 6c 65 73 73 0a | 74 68 61 6e 20 77 69 6e |is less.|than win|
|00002780| 64 6f 77 20 68 65 69 67 | 68 74 20 74 68 65 6e 20 |dow heig|ht then |
|00002790| 73 63 72 6f 6c 6c 69 6e | 67 20 63 6f 6e 74 65 78 |scrollin|g contex|
|000027a0| 74 20 69 73 20 70 72 6f | 76 69 64 65 64 20 66 72 |t is pro|vided fr|
|000027b0| 6f 6d 20 70 72 65 76 69 | 6f 75 73 20 73 63 72 65 |om previ|ous scre|
|000027c0| 65 6e 2e 1f 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |en...(de|falias '|
|000027d0| 56 69 65 77 2d 73 63 72 | 6f 6c 6c 2d 6c 69 6e 65 |View-scr|oll-line|
|000027e0| 73 2d 66 6f 72 77 61 72 | 64 2d 73 65 74 2d 73 63 |s-forwar|d-set-sc|
|000027f0| 72 6f 6c 6c 2d 73 69 7a | 65 20 23 5b 28 26 6f 70 |roll-siz|e #[(&op|
|00002800| 74 69 6f 6e 61 6c 20 6c | 69 6e 65 73 29 20 22 08 |tional l|ines) ".|
|00002810| ac 85 c1 20 12 aa 92 c3 | 08 21 89 10 c4 56 ab 83 |... ....|.!...V..|
|00002820| 08 aa 82 08 5b c1 20 5e | 12 c5 08 21 87 22 20 5b |....[. ^|...!." [|
|00002830| 6c 69 6e 65 73 20 76 69 | 65 77 2d 77 69 6e 64 6f |lines vi|ew-windo|
|00002840| 77 2d 73 69 7a 65 20 76 | 69 65 77 2d 73 63 72 6f |w-size v|iew-scro|
|00002850| 6c 6c 2d 73 69 7a 65 20 | 70 72 65 66 69 78 2d 6e |ll-size |prefix-n|
|00002860| 75 6d 65 72 69 63 2d 76 | 61 6c 75 65 20 30 20 56 |umeric-v|alue 0 V|
|00002870| 69 65 77 2d 73 63 72 6f | 6c 6c 2d 6c 69 6e 65 73 |iew-scro|ll-lines|
|00002880| 2d 66 6f 72 77 61 72 64 | 5d 20 33 20 28 23 24 20 |-forward|] 3 (#$ |
|00002890| 2e 20 39 36 39 34 29 20 | 22 50 22 5d 29 0a 23 40 |. 9694) |"P"]).#@|
|000028a0| 37 30 20 53 63 72 6f 6c | 6c 20 6f 6e 65 20 6d 6f |70 Scrol|l one mo|
|000028b0| 72 65 20 6c 69 6e 65 20 | 75 70 20 69 6e 20 56 69 |re line |up in Vi|
|000028c0| 65 77 20 6d 6f 64 65 2e | 0a 57 69 74 68 20 41 52 |ew mode.|.With AR|
|000028d0| 47 20 73 63 72 6f 6c 6c | 20 6f 6e 65 20 6c 69 6e |G scroll| one lin|
|000028e0| 65 20 64 6f 77 6e 2e 1f | 0a 28 64 65 66 61 6c 69 |e down..|.(defali|
|000028f0| 61 73 20 27 56 69 65 77 | 2d 73 63 72 6f 6c 6c 2d |as 'View|-scroll-|
|00002900| 6f 6e 65 2d 6d 6f 72 65 | 2d 6c 69 6e 65 20 23 5b |one-more|-line #[|
|00002910| 28 26 6f 70 74 69 6f 6e | 61 6c 20 61 72 67 29 20 |(&option|al arg) |
|00002920| 22 c0 09 ac 83 c2 aa 81 | c3 21 87 22 20 5b 56 69 |".......|.!." [Vi|
|00002930| 65 77 2d 73 63 72 6f 6c | 6c 2d 6c 69 6e 65 73 2d |ew-scrol|l-lines-|
|00002940| 66 6f 72 77 61 72 64 20 | 61 72 67 20 31 20 2d 31 |forward |arg 1 -1|
|00002950| 5d 20 32 20 28 23 24 20 | 2e 20 31 30 34 30 33 29 |] 2 (#$ |. 10403)|
|00002960| 20 22 50 22 5d 29 0a 23 | 40 31 36 39 20 53 63 72 | "P"]).#|@169 Scr|
|00002970| 6f 6c 6c 20 62 61 63 6b | 77 61 72 64 20 69 6e 20 |oll back|ward in |
|00002980| 56 69 65 77 20 6d 6f 64 | 65 2e 0a 4e 6f 20 61 72 |View mod|e..No ar|
|00002990| 67 20 6d 65 61 6e 73 20 | 77 68 6f 6c 65 20 77 69 |g means |whole wi|
|000029a0| 6e 64 6f 77 20 66 75 6c | 6c 2c 20 6f 72 20 6e 75 |ndow ful|l, or nu|
|000029b0| 6d 62 65 72 20 6f 66 20 | 6c 69 6e 65 73 20 73 65 |mber of |lines se|
|000029c0| 74 20 62 79 20 5c 5b 56 | 69 65 77 2d 73 63 72 6f |t by \[V|iew-scro|
|000029d0| 6c 6c 2d 6c 69 6e 65 73 | 2d 66 6f 72 77 61 72 64 |ll-lines|-forward|
|000029e0| 2d 73 65 74 2d 73 63 72 | 6f 6c 6c 2d 73 69 7a 65 |-set-scr|oll-size|
|000029f0| 5d 2e 0a 41 72 67 20 69 | 73 20 6e 75 6d 62 65 72 |]..Arg i|s number|
|00002a00| 20 6f 66 20 6c 69 6e 65 | 73 20 74 6f 20 73 63 72 | of line|s to scr|
|00002a10| 6f 6c 6c 2e 1f 0a 28 64 | 65 66 61 6c 69 61 73 20 |oll...(d|efalias |
|00002a20| 27 56 69 65 77 2d 73 63 | 72 6f 6c 6c 2d 6c 69 6e |'View-sc|roll-lin|
|00002a30| 65 73 2d 62 61 63 6b 77 | 61 72 64 20 23 5b 28 26 |es-backw|ard #[(&|
|00002a40| 6f 70 74 69 6f 6e 61 6c | 20 6c 69 6e 65 73 29 20 |optional| lines) |
|00002a50| 22 c0 09 ab 86 c2 09 21 | 5b aa 83 c3 20 5b 21 87 |"......!|[... [!.|
|00002a60| 22 20 5b 56 69 65 77 2d | 73 63 72 6f 6c 6c 2d 6c |" [View-|scroll-l|
|00002a70| 69 6e 65 73 2d 66 6f 72 | 77 61 72 64 20 6c 69 6e |ines-for|ward lin|
|00002a80| 65 73 20 70 72 65 66 69 | 78 2d 6e 75 6d 65 72 69 |es prefi|x-numeri|
|00002a90| 63 2d 76 61 6c 75 65 20 | 76 69 65 77 2d 73 63 72 |c-value |view-scr|
|00002aa0| 6f 6c 6c 2d 73 69 7a 65 | 5d 20 33 20 28 23 24 20 |oll-size|] 3 (#$ |
|00002ab0| 2e 20 31 30 36 30 35 29 | 20 22 50 22 5d 29 0a 23 |. 10605)| "P"]).#|
|00002ac0| 40 33 36 37 20 53 65 61 | 72 63 68 20 66 6f 72 77 |@367 Sea|rch forw|
|00002ad0| 61 72 64 20 66 6f 72 20 | 4e 74 68 20 6f 63 63 75 |ard for |Nth occu|
|00002ae0| 72 72 65 6e 63 65 20 6f | 66 20 52 45 47 45 58 50 |rrence o|f REGEXP|
|00002af0| 2e 0a 44 69 73 70 6c 61 | 79 73 20 6c 69 6e 65 20 |..Displa|ys line |
|00002b00| 66 6f 75 6e 64 20 61 74 | 20 63 65 6e 74 65 72 20 |found at| center |
|00002b10| 6f 66 20 77 69 6e 64 6f | 77 2e 20 20 52 45 47 45 |of windo|w. REGE|
|00002b20| 58 50 20 69 73 20 72 65 | 6d 65 6d 62 65 72 65 64 |XP is re|membered|
|00002b30| 20 66 6f 72 0a 73 65 61 | 72 63 68 69 6e 67 20 77 | for.sea|rching w|
|00002b40| 69 74 68 20 5c 5b 56 69 | 65 77 2d 73 65 61 72 63 |ith \[Vi|ew-searc|
|00002b50| 68 2d 6c 61 73 74 2d 72 | 65 67 65 78 70 2d 66 6f |h-last-r|egexp-fo|
|00002b60| 72 77 61 72 64 5d 20 61 | 6e 64 20 5c 5b 56 69 65 |rward] a|nd \[Vie|
|00002b70| 77 2d 73 65 61 72 63 68 | 2d 6c 61 73 74 2d 72 65 |w-search|-last-re|
|00002b80| 67 65 78 70 2d 62 61 63 | 6b 77 61 72 64 5d 2e 20 |gexp-bac|kward]. |
|00002b90| 20 53 65 74 73 20 6d 61 | 72 6b 20 61 74 20 73 74 | Sets ma|rk at st|
|00002ba0| 61 72 74 69 6e 67 20 70 | 6f 73 69 74 69 6f 6e 20 |arting p|osition |
|00002bb0| 61 6e 64 20 70 75 73 68 | 65 73 20 6d 61 72 6b 20 |and push|es mark |
|00002bc0| 72 69 6e 67 2e 0a 0a 54 | 68 65 20 76 61 72 69 61 |ring...T|he varia|
|00002bd0| 62 6c 65 20 60 76 69 65 | 77 2d 68 69 67 68 6c 69 |ble `vie|w-highli|
|00002be0| 67 68 74 2d 66 61 63 65 | 27 20 63 6f 6e 74 72 6f |ght-face|' contro|
|00002bf0| 6c 73 20 74 68 65 20 66 | 61 63 65 20 74 68 61 74 |ls the f|ace that|
|00002c00| 20 69 73 20 75 73 65 64 | 0a 66 6f 72 20 68 69 67 | is used|.for hig|
|00002c10| 68 6c 69 67 68 74 69 6e | 67 20 74 68 65 20 6d 61 |hlightin|g the ma|
|00002c20| 74 63 68 20 74 68 61 74 | 20 69 73 20 66 6f 75 6e |tch that| is foun|
|00002c30| 64 2e 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 56 |d...(def|alias 'V|
|00002c40| 69 65 77 2d 73 65 61 72 | 63 68 2d 72 65 67 65 78 |iew-sear|ch-regex|
|00002c50| 70 2d 66 6f 72 77 61 72 | 64 20 23 5b 28 6e 20 72 |p-forwar|d #[(n r|
|00002c60| 65 67 65 78 70 29 20 22 | c0 09 5c 6e c3 6b ab 83 |egexp) "|..\n.k..|
|00002c70| 0c aa 81 5c 6e 5c 22 87 | 22 20 5b 76 69 65 77 2d |...\n\".|" [view-|
|00002c80| 73 65 61 72 63 68 20 6e | 20 72 65 67 65 78 70 20 |search n| regexp |
|00002c90| 22 22 20 76 69 65 77 2d | 6c 61 73 74 2d 72 65 67 |"" view-|last-reg|
|00002ca0| 65 78 70 5d 20 34 20 28 | 23 24 20 2e 20 31 30 39 |exp] 4 (|#$ . 109|
|00002cb0| 34 39 29 20 22 70 5c 6e | 73 53 65 61 72 63 68 20 |49) "p\n|sSearch |
|00002cc0| 66 6f 72 77 61 72 64 20 | 28 72 65 67 65 78 70 29 |forward |(regexp)|
|00002cd0| 3a 20 22 5d 29 0a 23 40 | 33 38 34 20 53 65 61 72 |: "]).#@|384 Sear|
|00002ce0| 63 68 20 62 61 63 6b 77 | 61 72 64 20 66 72 6f 6d |ch backw|ard from|
|00002cf0| 20 77 69 6e 64 6f 77 20 | 73 74 61 72 74 20 66 6f | window |start fo|
|00002d00| 72 20 4e 74 68 20 69 6e | 73 74 61 6e 63 65 20 6f |r Nth in|stance o|
|00002d10| 66 20 52 45 47 45 58 50 | 2e 0a 44 69 73 70 6c 61 |f REGEXP|..Displa|
|00002d20| 79 73 20 6c 69 6e 65 20 | 66 6f 75 6e 64 20 61 74 |ys line |found at|
|00002d30| 20 63 65 6e 74 65 72 20 | 6f 66 20 77 69 6e 64 6f | center |of windo|
|00002d40| 77 2e 20 20 52 45 47 45 | 58 50 20 69 73 20 72 65 |w. REGE|XP is re|
|00002d50| 6d 65 6d 62 65 72 65 64 | 20 66 6f 72 0a 73 65 61 |membered| for.sea|
|00002d60| 72 63 68 69 6e 67 20 77 | 69 74 68 20 5c 5b 56 69 |rching w|ith \[Vi|
|00002d70| 65 77 2d 73 65 61 72 63 | 68 2d 6c 61 73 74 2d 72 |ew-searc|h-last-r|
|00002d80| 65 67 65 78 70 2d 66 6f | 72 77 61 72 64 5d 20 61 |egexp-fo|rward] a|
|00002d90| 6e 64 20 5c 5b 56 69 65 | 77 2d 73 65 61 72 63 68 |nd \[Vie|w-search|
|00002da0| 2d 6c 61 73 74 2d 72 65 | 67 65 78 70 2d 62 61 63 |-last-re|gexp-bac|
|00002db0| 6b 77 61 72 64 5d 2e 20 | 20 53 65 74 73 20 6d 61 |kward]. | Sets ma|
|00002dc0| 72 6b 20 61 74 20 73 74 | 61 72 74 69 6e 67 20 70 |rk at st|arting p|
|00002dd0| 6f 73 69 74 69 6f 6e 20 | 61 6e 64 20 70 75 73 68 |osition |and push|
|00002de0| 65 73 20 6d 61 72 6b 20 | 72 69 6e 67 2e 0a 0a 54 |es mark |ring...T|
|00002df0| 68 65 20 76 61 72 69 61 | 62 6c 65 20 60 76 69 65 |he varia|ble `vie|
|00002e00| 77 2d 68 69 67 68 6c 69 | 67 68 74 2d 66 61 63 65 |w-highli|ght-face|
|00002e10| 27 20 63 6f 6e 74 72 6f | 6c 73 20 74 68 65 20 66 |' contro|ls the f|
|00002e20| 61 63 65 20 74 68 61 74 | 20 69 73 20 75 73 65 64 |ace that| is used|
|00002e30| 0a 66 6f 72 20 68 69 67 | 68 6c 69 67 68 74 69 6e |.for hig|hlightin|
|00002e40| 67 20 74 68 65 20 6d 61 | 74 63 68 20 74 68 61 74 |g the ma|tch that|
|00002e50| 20 69 73 20 66 6f 75 6e | 64 2e 1f 0a 28 64 65 66 | is foun|d...(def|
|00002e60| 61 6c 69 61 73 20 27 56 | 69 65 77 2d 73 65 61 72 |alias 'V|iew-sear|
|00002e70| 63 68 2d 72 65 67 65 78 | 70 2d 62 61 63 6b 77 61 |ch-regex|p-backwa|
|00002e80| 72 64 20 23 5b 28 6e 20 | 72 65 67 65 78 70 29 20 |rd #[(n |regexp) |
|00002e90| 22 c0 09 5b 5c 6e c3 6b | ab 83 0c aa 81 5c 6e 5c |"..[\n.k|.....\n\|
|00002ea0| 22 87 22 20 5b 56 69 65 | 77 2d 73 65 61 72 63 68 |"." [Vie|w-search|
|00002eb0| 2d 72 65 67 65 78 70 2d | 66 6f 72 77 61 72 64 20 |-regexp-|forward |
|00002ec0| 6e 20 72 65 67 65 78 70 | 20 22 22 20 76 69 65 77 |n regexp| "" view|
|00002ed0| 2d 6c 61 73 74 2d 72 65 | 67 65 78 70 5d 20 34 20 |-last-re|gexp] 4 |
|00002ee0| 28 23 24 20 2e 20 31 31 | 34 38 34 29 20 22 70 5c |(#$ . 11|484) "p\|
|00002ef0| 6e 73 53 65 61 72 63 68 | 20 62 61 63 6b 77 61 72 |nsSearch| backwar|
|00002f00| 64 20 28 72 65 67 65 78 | 70 29 3a 20 22 5d 29 0a |d (regex|p): "]).|
|00002f10| 23 40 32 36 39 20 53 65 | 61 72 63 68 20 66 6f 72 |#@269 Se|arch for|
|00002f20| 77 61 72 64 20 66 72 6f | 6d 20 77 69 6e 64 6f 77 |ward fro|m window|
|00002f30| 20 65 6e 64 20 66 6f 72 | 20 4e 74 68 20 69 6e 73 | end for| Nth ins|
|00002f40| 74 61 6e 63 65 20 6f 66 | 20 6c 61 73 74 20 72 65 |tance of| last re|
|00002f50| 67 65 78 70 2e 0a 44 69 | 73 70 6c 61 79 73 20 6c |gexp..Di|splays l|
|00002f60| 69 6e 65 20 66 6f 75 6e | 64 20 61 74 20 63 65 6e |ine foun|d at cen|
|00002f70| 74 65 72 20 6f 66 20 77 | 69 6e 64 6f 77 2e 20 20 |ter of w|indow. |
|00002f80| 53 65 74 73 20 6d 61 72 | 6b 20 61 74 20 73 74 61 |Sets mar|k at sta|
|00002f90| 72 74 69 6e 67 20 70 6f | 73 69 74 69 6f 6e 0a 61 |rting po|sition.a|
|00002fa0| 6e 64 20 70 75 73 68 65 | 73 20 6d 61 72 6b 20 72 |nd pushe|s mark r|
|00002fb0| 69 6e 67 2e 0a 0a 54 68 | 65 20 76 61 72 69 61 62 |ing...Th|e variab|
|00002fc0| 6c 65 20 60 76 69 65 77 | 2d 68 69 67 68 6c 69 67 |le `view|-highlig|
|00002fd0| 68 74 2d 66 61 63 65 27 | 20 63 6f 6e 74 72 6f 6c |ht-face'| control|
|00002fe0| 73 20 74 68 65 20 66 61 | 63 65 20 74 68 61 74 20 |s the fa|ce that |
|00002ff0| 69 73 20 75 73 65 64 0a | 66 6f 72 20 68 69 67 68 |is used.|for high|
|00003000| 6c 69 67 68 74 69 6e 67 | 20 74 68 65 20 6d 61 74 |lighting| the mat|
|00003010| 63 68 20 74 68 61 74 20 | 69 73 20 66 6f 75 6e 64 |ch that |is found|
|00003020| 2e 1f 0a 28 64 65 66 61 | 6c 69 61 73 20 27 56 69 |...(defa|lias 'Vi|
|00003030| 65 77 2d 73 65 61 72 63 | 68 2d 6c 61 73 74 2d 72 |ew-searc|h-last-r|
|00003040| 65 67 65 78 70 2d 66 6f | 72 77 61 72 64 20 23 5b |egexp-fo|rward #[|
|00003050| 28 6e 29 20 22 08 ab 85 | c1 5c 6e 08 5c 22 87 c3 |(n) "...|.\n.\"..|
|00003060| c4 21 87 22 20 5b 76 69 | 65 77 2d 6c 61 73 74 2d |.!." [vi|ew-last-|
|00003070| 72 65 67 65 78 70 20 56 | 69 65 77 2d 73 65 61 72 |regexp V|iew-sear|
|00003080| 63 68 2d 72 65 67 65 78 | 70 2d 66 6f 72 77 61 72 |ch-regex|p-forwar|
|00003090| 64 20 6e 20 65 72 72 6f | 72 20 22 4e 6f 20 70 72 |d n erro|r "No pr|
|000030a0| 65 76 69 6f 75 73 20 56 | 69 65 77 2d 6d 6f 64 65 |evious V|iew-mode|
|000030b0| 20 73 65 61 72 63 68 22 | 5d 20 33 20 28 23 24 20 | search"|] 3 (#$ |
|000030c0| 2e 20 31 32 30 35 34 29 | 20 22 70 22 5d 29 0a 23 |. 12054)| "p"]).#|
|000030d0| 40 32 37 32 20 53 65 61 | 72 63 68 20 62 61 63 6b |@272 Sea|rch back|
|000030e0| 77 61 72 64 20 66 72 6f | 6d 20 77 69 6e 64 6f 77 |ward fro|m window|
|000030f0| 20 73 74 61 72 74 20 66 | 6f 72 20 4e 74 68 20 69 | start f|or Nth i|
|00003100| 6e 73 74 61 6e 63 65 20 | 6f 66 20 6c 61 73 74 20 |nstance |of last |
|00003110| 72 65 67 65 78 70 2e 0a | 44 69 73 70 6c 61 79 73 |regexp..|Displays|
|00003120| 20 6c 69 6e 65 20 66 6f | 75 6e 64 20 61 74 20 63 | line fo|und at c|
|00003130| 65 6e 74 65 72 20 6f 66 | 20 77 69 6e 64 6f 77 2e |enter of| window.|
|00003140| 20 20 53 65 74 73 20 6d | 61 72 6b 20 61 74 20 73 | Sets m|ark at s|
|00003150| 74 61 72 74 69 6e 67 20 | 70 6f 73 69 74 69 6f 6e |tarting |position|
|00003160| 20 61 6e 64 0a 70 75 73 | 68 65 73 20 6d 61 72 6b | and.pus|hes mark|
|00003170| 20 72 69 6e 67 2e 0a 0a | 54 68 65 20 76 61 72 69 | ring...|The vari|
|00003180| 61 62 6c 65 20 60 76 69 | 65 77 2d 68 69 67 68 6c |able `vi|ew-highl|
|00003190| 69 67 68 74 2d 66 61 63 | 65 27 20 63 6f 6e 74 72 |ight-fac|e' contr|
|000031a0| 6f 6c 73 20 74 68 65 20 | 66 61 63 65 20 74 68 61 |ols the |face tha|
|000031b0| 74 20 69 73 20 75 73 65 | 64 0a 66 6f 72 20 68 69 |t is use|d.for hi|
|000031c0| 67 68 6c 69 67 68 74 69 | 6e 67 20 74 68 65 20 6d |ghlighti|ng the m|
|000031d0| 61 74 63 68 20 74 68 61 | 74 20 69 73 20 66 6f 75 |atch tha|t is fou|
|000031e0| 6e 64 2e 1f 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |nd...(de|falias '|
|000031f0| 56 69 65 77 2d 73 65 61 | 72 63 68 2d 6c 61 73 74 |View-sea|rch-last|
|00003200| 2d 72 65 67 65 78 70 2d | 62 61 63 6b 77 61 72 64 |-regexp-|backward|
|00003210| 20 23 5b 28 6e 29 20 22 | 08 ab 85 c1 5c 6e 08 5c | #[(n) "|....\n.\|
|00003220| 22 87 c3 c4 21 87 22 20 | 5b 76 69 65 77 2d 6c 61 |"...!." |[view-la|
|00003230| 73 74 2d 72 65 67 65 78 | 70 20 56 69 65 77 2d 73 |st-regex|p View-s|
|00003240| 65 61 72 63 68 2d 72 65 | 67 65 78 70 2d 62 61 63 |earch-re|gexp-bac|
|00003250| 6b 77 61 72 64 20 6e 20 | 65 72 72 6f 72 20 22 4e |kward n |error "N|
|00003260| 6f 20 70 72 65 76 69 6f | 75 73 20 56 69 65 77 2d |o previo|us View-|
|00003270| 6d 6f 64 65 20 73 65 61 | 72 63 68 22 5d 20 33 20 |mode sea|rch"] 3 |
|00003280| 28 23 24 20 2e 20 31 32 | 35 30 31 29 20 22 70 22 |(#$ . 12|501) "p"|
|00003290| 5d 29 0a 23 40 31 36 35 | 20 52 65 74 75 72 6e 20 |]).#@165| Return |
|000032a0| 74 6f 20 6c 61 73 74 20 | 6d 61 72 6b 20 73 65 74 |to last |mark set|
|000032b0| 20 69 6e 20 56 69 65 77 | 20 6d 6f 64 65 2c 20 65 | in View| mode, e|
|000032c0| 6c 73 65 20 62 65 67 69 | 6e 6e 69 6e 67 20 6f 66 |lse begi|nning of|
|000032d0| 20 66 69 6c 65 2e 0a 44 | 69 73 70 6c 61 79 73 20 | file..D|isplays |
|000032e0| 6c 69 6e 65 20 61 74 20 | 63 65 6e 74 65 72 20 6f |line at |center o|
|000032f0| 66 20 77 69 6e 64 6f 77 | 2e 20 20 50 6f 70 73 20 |f window|. Pops |
|00003300| 6d 61 72 6b 20 72 69 6e | 67 20 73 6f 20 73 75 63 |mark rin|g so suc|
|00003310| 63 65 73 73 69 76 65 0a | 69 6e 76 6f 63 61 74 69 |cessive.|invocati|
|00003320| 6f 6e 73 20 72 65 74 75 | 72 6e 20 74 6f 20 65 61 |ons retu|rn to ea|
|00003330| 72 6c 69 65 72 20 6d 61 | 72 6b 73 2e 1f 0a 28 64 |rlier ma|rks...(d|
|00003340| 65 66 61 6c 69 61 73 20 | 27 56 69 65 77 2d 62 61 |efalias |'View-ba|
|00003350| 63 6b 2d 74 6f 2d 6d 61 | 72 6b 20 23 5b 28 26 6f |ck-to-ma|rk #[(&o|
|00003360| 70 74 69 6f 6e 61 6c 20 | 69 67 6e 6f 72 65 29 20 |ptional |ignore) |
|00003370| 22 c0 c1 21 ae 81 65 62 | 88 c2 20 88 c3 c4 20 c5 |"..!..eb|.. ... .|
|00003380| a5 21 87 22 20 5b 6d 61 | 72 6b 20 74 20 70 6f 70 |.!." [ma|rk t pop|
|00003390| 2d 6d 61 72 6b 20 72 65 | 63 65 6e 74 65 72 20 76 |-mark re|center v|
|000033a0| 69 65 77 2d 77 69 6e 64 | 6f 77 2d 73 69 7a 65 20 |iew-wind|ow-size |
|000033b0| 32 5d 20 33 20 28 23 24 | 20 2e 20 31 32 39 35 33 |2] 3 (#$| . 12953|
|000033c0| 29 20 6e 69 6c 5d 29 0a | 28 64 65 66 61 6c 69 61 |) nil]).|(defalia|
|000033d0| 73 20 27 76 69 65 77 2d | 73 65 61 72 63 68 20 23 |s 'view-|search #|
|000033e0| 5b 28 74 69 6d 65 73 20 | 72 65 67 65 78 70 29 20 |[(times |regexp) |
|000033f0| 22 08 11 c2 1b 8a c4 0d | c6 57 ab 83 c6 aa 81 c7 |".......|.W......|
|00003400| 21 88 c8 08 c2 c9 0d 24 | ab 82 60 13 29 0b ab af |!......$|..`.)...|
|00003410| ca 20 88 0b 62 88 0e 0b | ab 8b cc 0e 0b c6 94 c6 |. ..b...|........|
|00003420| 95 23 88 aa 88 cd c6 94 | c6 95 5c 22 16 0b ce 0e |.#......|..\"....|
|00003430| 0b 0e 0f 5c 22 88 c6 79 | 88 d0 d1 20 d2 a5 21 aa |...\"..y|... ..!.|
|00003440| 89 d3 d4 0d 08 23 88 d5 | d6 21 29 87 22 20 5b 72 |.....#..|.!)." [r|
|00003450| 65 67 65 78 70 20 76 69 | 65 77 2d 6c 61 73 74 2d |egexp vi|ew-last-|
|00003460| 72 65 67 65 78 70 20 6e | 69 6c 20 77 68 65 72 65 |regexp n|il where|
|00003470| 20 6d 6f 76 65 2d 74 6f | 2d 77 69 6e 64 6f 77 2d | move-to|-window-|
|00003480| 6c 69 6e 65 20 74 69 6d | 65 73 20 30 20 2d 31 20 |line tim|es 0 -1 |
|00003490| 72 65 2d 73 65 61 72 63 | 68 2d 66 6f 72 77 61 72 |re-searc|h-forwar|
|000034a0| 64 20 74 20 70 75 73 68 | 2d 6d 61 72 6b 20 76 69 |d t push|-mark vi|
|000034b0| 65 77 2d 65 78 74 65 6e | 74 20 73 65 74 2d 65 78 |ew-exten|t set-ex|
|000034c0| 74 65 6e 74 2d 65 6e 64 | 70 6f 69 6e 74 73 20 6d |tent-end|points m|
|000034d0| 61 6b 65 2d 65 78 74 65 | 6e 74 20 73 65 74 2d 65 |ake-exte|nt set-e|
|000034e0| 78 74 65 6e 74 2d 66 61 | 63 65 20 76 69 65 77 2d |xtent-fa|ce view-|
|000034f0| 68 69 67 68 6c 69 67 68 | 74 2d 66 61 63 65 20 72 |highligh|t-face r|
|00003500| 65 63 65 6e 74 65 72 20 | 76 69 65 77 2d 77 69 6e |ecenter |view-win|
|00003510| 64 6f 77 2d 73 69 7a 65 | 20 32 20 6d 65 73 73 61 |dow-size| 2 messa|
|00003520| 67 65 20 22 43 61 6e 27 | 74 20 66 69 6e 64 20 6f |ge "Can'|t find o|
|00003530| 63 63 75 72 72 65 6e 63 | 65 20 25 64 20 6f 66 20 |ccurrenc|e %d of |
|00003540| 25 73 22 20 73 69 74 2d | 66 6f 72 20 34 5d 20 35 |%s" sit-|for 4] 5|
|00003550| 5d 29 0a 28 70 72 6f 76 | 69 64 65 20 27 76 69 65 |]).(prov|ide 'vie|
|00003560| 77 29 0a | |w). | |
+--------+-------------------------+-------------------------+--------+--------+